bug 11244: Thread updating "op_host_capacity" table shouldn't do updates for removed pods/zones.

status 11244: resolved fixed
This commit is contained in:
Nitin 2011-08-26 18:56:37 +05:30
parent db0d6329d8
commit 294f3953a4
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ public class AlertManagerImpl implements AlertManager {
try {
txn.start();
// Calculate new Public IP capacity
List<DataCenterVO> datacenters = _dcDao.listAllIncludingRemoved();
List<DataCenterVO> 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<HostPodVO> pods = _podDao.listAllIncludingRemoved();
List<HostPodVO> pods = _podDao.listAll();
for (HostPodVO pod : pods) {
long podId = pod.getId();
long dcId = pod.getDataCenterId();