yvsubhash commented on a change in pull request #1740: CLOUDSTACK-9572 Snapshot
on primary storage not cleaned up after Stor?
URL: https://github.com/apache/cloudstack/pull/1740#discussion_r158631798
##########
File path:
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotDataFactoryImpl.java
##########
@@ -64,6 +64,24 @@ public SnapshotInfo getSnapshot(DataObject obj, DataStore
store) {
return so;
}
+ @Override
+ public List<SnapshotInfo> getSnapshots(long volumeId, DataStoreRole role) {
+
+ SnapshotDataStoreVO snapshotStore =
snapshotStoreDao.findByVolume(volumeId, role);
+ if (snapshotStore == null) {
+ return null;
Review comment:
@rafaelweingartner Deleting snapshots from primary after copy is complete
taken care in xenserver case in postSnapshotCreation method in
XenserverSnapshotStrategy.java for all snapshots except the lost one. So this
one only takes care of the last snapshot that we keep in primary for delta
snapshots. null return is replaced with empty set
----------------------------------------------------------------
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