mike-tutkowski commented on issue #1740: CLOUDSTACK-9572 Snapshot on primary 
storage not cleaned up after Stor…
URL: https://github.com/apache/cloudstack/pull/1740#issuecomment-411916938
 
 
   From what it looks like, the method is called upon success at least in two 
places:
   
                   future.complete(res);
               } else {
                   srcVolume.processEvent(Event.OperationSuccessed);
                   **snapshotMgr.cleanupSnapshotsByVolume(srcVolume.getId());**
                   future.complete(res);
               }
           } catch (Exception e) {
   @@ -1624,6 +1625,7 @@ public 
MigrateVmWithVolumesContext(AsyncCompletionCallback<T> callback, AsyncCal
               } else {
                   for (Map.Entry<VolumeInfo, DataStore> entry : 
volumeToPool.entrySet()) {
                       VolumeInfo volume = entry.getKey();
                       **snapshotMgr.cleanupSnapshotsByVolume(volume.getId());**
                       volume.processEvent(Event.OperationSuccessed);
                   }
                   future.complete(res);

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to