Skip to content

Commit 294f395

Browse files
bug 11244: Thread updating "op_host_capacity" table shouldn't do updates for removed pods/zones.
status 11244: resolved fixed
1 parent db0d632 commit 294f395

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/src/com/cloud/alert/AlertManagerImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public void recalculateCapacity() {
264264
try {
265265
txn.start();
266266
// Calculate new Public IP capacity
267-
List<DataCenterVO> datacenters = _dcDao.listAllIncludingRemoved();
267+
List<DataCenterVO> datacenters = _dcDao.listAll();
268268
for (DataCenterVO datacenter : datacenters) {
269269
long dcId = datacenter.getId();
270270

@@ -283,7 +283,7 @@ public void recalculateCapacity() {
283283

284284
txn.start();
285285
// Calculate new Private IP capacity
286-
List<HostPodVO> pods = _podDao.listAllIncludingRemoved();
286+
List<HostPodVO> pods = _podDao.listAll();
287287
for (HostPodVO pod : pods) {
288288
long podId = pod.getId();
289289
long dcId = pod.getDataCenterId();

0 commit comments

Comments
 (0)