From 294f3953a431a09f971ded01e34dfc67bb8d2eb5 Mon Sep 17 00:00:00 2001 From: Nitin Date: Fri, 26 Aug 2011 18:56:37 +0530 Subject: [PATCH] bug 11244: Thread updating "op_host_capacity" table shouldn't do updates for removed pods/zones. status 11244: resolved fixed --- server/src/com/cloud/alert/AlertManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/alert/AlertManagerImpl.java b/server/src/com/cloud/alert/AlertManagerImpl.java index 95e64ef9dee..d2ad750c247 100755 --- a/server/src/com/cloud/alert/AlertManagerImpl.java +++ b/server/src/com/cloud/alert/AlertManagerImpl.java @@ -264,7 +264,7 @@ public class AlertManagerImpl implements AlertManager { try { txn.start(); // Calculate new Public IP capacity - List datacenters = _dcDao.listAllIncludingRemoved(); + List datacenters = _dcDao.listAll(); for (DataCenterVO datacenter : datacenters) { long dcId = datacenter.getId(); @@ -283,7 +283,7 @@ public class AlertManagerImpl implements AlertManager { txn.start(); // Calculate new Private IP capacity - List pods = _podDao.listAllIncludingRemoved(); + List pods = _podDao.listAll(); for (HostPodVO pod : pods) { long podId = pod.getId(); long dcId = pod.getDataCenterId();