Merge pull request #5720 from shapeblue/remove-redundant-call-for-snapshot-chain-size

Removed redundant call for VM snapshot chain size, in VMware.
This commit is contained in:
Harikrishna 2021-12-02 10:08:28 +05:30 committed by GitHub
commit 867ccf6f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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