This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 5c1f9315ced Remove transaction from updateCapacityForHost cal (#12421)
5c1f9315ced is described below
commit 5c1f9315ceda5d354e9666c91bffd9a378bbd0fa
Author: Abhisar Sinha <[email protected]>
AuthorDate: Wed Jan 14 20:42:42 2026 +0530
Remove transaction from updateCapacityForHost cal (#12421)
---
server/src/main/java/com/cloud/alert/AlertManagerImpl.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/server/src/main/java/com/cloud/alert/AlertManagerImpl.java
b/server/src/main/java/com/cloud/alert/AlertManagerImpl.java
index 377b2134d78..7bf00037ee4 100644
--- a/server/src/main/java/com/cloud/alert/AlertManagerImpl.java
+++ b/server/src/main/java/com/cloud/alert/AlertManagerImpl.java
@@ -294,13 +294,8 @@ public class AlertManagerImpl extends ManagerBase
implements AlertManager, Confi
Math.min(CapacityManager.CapacityCalculateWorkers.value(),
hostIds.size())));
for (Long hostId : hostIds) {
futures.put(hostId, executorService.submit(() -> {
- Transaction.execute(new TransactionCallbackNoReturn() {
- @Override
- public void doInTransactionWithoutResult(TransactionStatus
status) {
- final HostVO host = hostDao.findById(hostId);
- _capacityMgr.updateCapacityForHost(host);
- }
- });
+ final HostVO host = hostDao.findById(hostId);
+ _capacityMgr.updateCapacityForHost(host);
return null;
}));
}