We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a39e6 commit da4377eCopy full SHA for da4377e
server/src/main/java/com/cloud/alert/AlertManagerImpl.java
@@ -294,13 +294,8 @@ protected void recalculateHostCapacities() {
294
Math.min(CapacityManager.CapacityCalculateWorkers.value(), hostIds.size())));
295
for (Long hostId : hostIds) {
296
futures.put(hostId, executorService.submit(() -> {
297
- Transaction.execute(new TransactionCallbackNoReturn() {
298
- @Override
299
- public void doInTransactionWithoutResult(TransactionStatus status) {
300
- final HostVO host = hostDao.findById(hostId);
301
- _capacityMgr.updateCapacityForHost(host);
302
- }
303
- });
+ final HostVO host = hostDao.findById(hostId);
+ _capacityMgr.updateCapacityForHost(host);
304
return null;
305
}));
306
}
0 commit comments