Skip to content

Commit 6b342ff

Browse files
Mike TutkowskiDaanHoogland
authored andcommitted
CLOUDSTACK-6170 Updated logic to more accurately calculate how much space is currently allocated for a managed storage pool
1 parent 5ba7f6c commit 6b342ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/capacity/CapacityManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public long getAllocatedPoolCapacity(StoragePoolVO pool, VMTemplateVO templateFo
548548
// if the storage pool is managed, the used bytes can be larger than the sum of the sizes of all of the non-destroyed volumes
549549
// in this case, call getUsedBytes(StoragePoolVO)
550550
if (pool.isManaged()) {
551-
totalAllocatedSize = getUsedBytes(pool);
551+
return getUsedBytes(pool);
552552
}
553553
else {
554554
// Get size for all the non-destroyed volumes

0 commit comments

Comments
 (0)