You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ha...@apache.org on 2021/12/02 04:38:58 UTC

[cloudstack] branch 4.16 updated: Removed redundant call for VM snapshot chain size, in VMware.

This is an automated email from the ASF dual-hosted git repository.

harikrishna pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.16 by this push:
     new e3459b5  Removed redundant call for VM snapshot chain size, in VMware.
     new 867ccf6  Merge pull request #5720 from shapeblue/remove-redundant-call-for-snapshot-chain-size
e3459b5 is described below

commit e3459b5c017b896dd82d5efedaa499b921f3d8da
Author: Suresh Kumar Anaparti <su...@shapeblue.com>
AuthorDate: Fri Nov 26 11:19:13 2021 +0530

    Removed redundant call for VM snapshot chain size, in VMware.
---
 .../com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java b/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
index 9ed1f7d..e84b744 100644
--- a/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
+++ b/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
@@ -1306,8 +1306,7 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager {
             // get volume's chain size for this VM snapshot; exclude current volume vdisk
             DataStoreTO store = volumeTO.getDataStore();
             ManagedObjectReference morDs = getDatastoreAsManagedObjectReference(baseName, hyperHost, store);
-            long size = getVMSnapshotChainSize(context, hyperHost, baseName + ".vmdk", morDs, newPath);
-            size = getVMSnapshotChainSize(context, hyperHost, baseName + "-*.vmdk", morDs, newPath);
+            long size = getVMSnapshotChainSize(context, hyperHost, baseName + "-*.vmdk", morDs, newPath);
 
             if (volumeTO.getVolumeType() == Volume.Type.ROOT) {
                 // add memory snapshot size