This is an automated email from the ASF dual-hosted git repository.
bhaisaab pushed a commit to branch 4.9
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.9 by this push:
new 970746c CLOUDSTACK-9668 : disksizeallocated of PrimaryStorage is
different from the total size of a volume
970746c is described below
commit 970746c6d60c47a0708811c1c2533baf626d3e5b
Author: Sudhansu <[email protected]>
AuthorDate: Wed Dec 21 14:07:47 2016 +0530
CLOUDSTACK-9668 : disksizeallocated of PrimaryStorage is different from the
total size of a volume
update capacity if current allocated is different from used bytes in DB.
---
server/src/com/cloud/storage/StorageManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java
b/server/src/com/cloud/storage/StorageManagerImpl.java
index a5ffbb0..c0afa32 100644
--- a/server/src/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/com/cloud/storage/StorageManagerImpl.java
@@ -1005,7 +1005,7 @@ public class StorageManagerImpl extends ManagerBase
implements StorageManager, C
_capacityDao.persist(capacity);
} else {
CapacityVO capacity = capacities.get(0);
- if (capacity.getTotalCapacity() != totalOverProvCapacity ||
allocated != 0L || capacity.getCapacityState() != capacityState) {
+ if (capacity.getTotalCapacity() != totalOverProvCapacity ||
allocated != capacity.getUsedCapacity() || capacity.getCapacityState() !=
capacityState) {
capacity.setTotalCapacity(totalOverProvCapacity);
capacity.setUsedCapacity(allocated);
capacity.setCapacityState(capacityState);
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].