Skip to content

Commit a1c64e3

Browse files
hsato03Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent f185688 commit a1c64e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/StorageOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public MigrationResponse migrateResources(Long srcImgStoreId, Long destImgStoreI
296296
}
297297

298298
if (storageCapacityBelowThreshold(storageCapacities, destImgStoreId)) {
299-
storageCapacities = migrateAway(chosenFileForMigration, storageCapacities, snapshotChains, childTemplates, snapshotIdsToMigrate, srcDatastore, destImgStoreId, executor, futures);
299+
storageCapacities = migrateAway(chosenFileForMigration, storageCapacities, snapshotChains, childTemplates, snapshotIdsToMigrate, srcDatastore, destImgStoreId, executor, futures);
300300
} else {
301301
message = "Migration failed. Destination store doesn't have enough capacity for migration";
302302
success = false;

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ to support snapshots(backuped) as qcow2 files. */
16191619
destFile = new QemuImgFile(destPath, destFormat);
16201620
try {
16211621
boolean isQCOW2 = PhysicalDiskFormat.QCOW2.equals(sourceFormat);
1622-
qemu.convert(srcFile, destFile, null, null, null, new QemuImageOptions(srcFile.getFormat(), srcFile.getFileName(), null),
1622+
qemu.convert(srcFile, destFile, null, null, null, new QemuImageOptions(srcFile.getFormat(), srcFile.getFileName(), null),
16231623
null, false, isQCOW2);
16241624
Map<String, String> destInfo = qemu.info(destFile);
16251625
Long virtualSize = Long.parseLong(destInfo.get(QemuImg.VIRTUAL_SIZE));

0 commit comments

Comments
 (0)