mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-6170 Updated logic to more accurately calculate how much space is currently allocated for a managed storage pool
This commit is contained in:
parent
06bbcde458
commit
2960ba733a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user