CLOUDSTACK-6170 Updated logic to more accurately calculate how much space is currently allocated for a managed storage pool

This commit is contained in:
Mike Tutkowski 2014-04-24 22:18:56 -06:00
parent 06bbcde458
commit 2960ba733a

View File

@ -548,7 +548,7 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager,
// 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
// in this case, call getUsedBytes(StoragePoolVO)
if (pool.isManaged()) {
totalAllocatedSize = getUsedBytes(pool);
return getUsedBytes(pool);
}
else {
// Get size for all the non-destroyed volumes