cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [02/17] git commit: updated refs/heads/master to f30fbe9
Date Mon, 07 Dec 2015 07:14:29 GMT
CLOUDSTACK-9101: update volume size after resizevolume


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/119b27b2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/119b27b2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/119b27b2

Branch: refs/heads/master
Commit: 119b27b2c6c366949b574fbca1574f15d67a3af3
Parents: 5b7d935
Author: Wei Zhou <w.zhou@tech.leaseweb.com>
Authored: Thu Dec 3 11:54:20 2015 +0100
Committer: Wei Zhou <w.zhou@tech.leaseweb.com>
Committed: Thu Dec 3 14:54:45 2015 +0100

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/119b27b2/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 6fe0a14..4313bfc 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -1158,6 +1158,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
             if (newDiskOfferingId != null) {
                 volume.setDiskOfferingId(newDiskOfferingId);
             }
+            if (currentSize != newSize) {
+                volume.setSize(newSize);
+            }
 
             _volsDao.update(volume.getId(), volume);
 


Mime
View raw message