This commit is contained in:
Edwin Eefting 2019-11-12 16:28:27 +01:00
parent 15a7528fbc
commit b3c41cb943

View File

@ -1100,9 +1100,15 @@ class ZfsDataset():
prev_source_snapshot=source_snapshot
else:
source_snapshot.debug("skipped (target doesnt need it)")
#was it actually a resume?
if resume_token:
target_dataset.debug("aborting resume, since we dont want that snapshot anymore")
target_dataset.abort_resume()
resume_token=None
#destroy it if we also dont want it anymore:
if source_snapshot not in source_keeps:
prev_source_snapshot.destroy()
source_snapshot.destroy()
source_snapshot=self.find_our_next_snapshot(source_snapshot)