mirror of https://github.com/apache/cloudstack.git
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:
parent
db0d6329d8
commit
294f3953a4
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue