You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/04/21 13:34:14 UTC

[GitHub] [cloudstack] Pearl1594 commented on a diff in pull request #6296: xen: Fix volume snapshot deletion when it has child snapshots

Pearl1594 commented on code in PR #6296:
URL: https://github.com/apache/cloudstack/pull/6296#discussion_r855191469


##########
engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/SnapshotObject.java:
##########
@@ -127,7 +127,7 @@ public SnapshotInfo getChild() {
         if (vo == null) {
             return null;
         }
-        return snapshotFactory.getSnapshot(vo.getId(), store);
+        return snapshotFactory.getSnapshot(vo.getSnapshotId(), store);

Review Comment:
   Actually Yes , however, it's usage comes into play only cleanup logic :
   1. where in it decides whether to cleanup the snapshot on the secondary store or not 
   2. When there are snapshots in destroyed state and the garbage collector kicks in, so the impact of this hasn't been big.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org