Skip to content

Commit 5fdcc2c

Browse files
author
Mike Tutkowski
committed
Comment out snapshot-deletion code
1 parent 3db33b7 commit 5fdcc2c

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)