File tree Expand file tree Collapse file tree
server/src/main/java/com/cloud/storage/snapshot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1344,17 +1344,17 @@ public boolean canOperateOnVolume(Volume volume) {
13441344
13451345 @ Override
13461346 public void cleanupSnapshotsByVolume (Long volumeId ) {
1347- List <SnapshotInfo > infos = snapshotFactory .getSnapshots (volumeId , DataStoreRole .Primary );
1348- for (SnapshotInfo info : infos ) {
1349- try {
1350- if (info != null ) {
1351- snapshotSrv .deleteSnapshot (info );
1352- }
1353- } catch (CloudRuntimeException e ) {
1354- String msg = "Cleanup of Snapshot with uuid " + info .getUuid () + " in primary storage is failed. Ignoring" ;
1355- s_logger .warn (msg );
1356- }
1357- }
1347+ // List<SnapshotInfo> infos = snapshotFactory.getSnapshots(volumeId, DataStoreRole.Primary);
1348+ // for(SnapshotInfo info: infos) {
1349+ // try {
1350+ // if(info != null) {
1351+ // snapshotSrv.deleteSnapshot(info);
1352+ // }
1353+ // } catch(CloudRuntimeException e) {
1354+ // String msg = "Cleanup of Snapshot with uuid " + info.getUuid() + " in primary storage is failed. Ignoring";
1355+ // s_logger.warn(msg);
1356+ // }
1357+ // }
13581358 }
13591359
13601360 @ Override
You can’t perform that action at this time.
0 commit comments