]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: don't prune older mirror snapshots when pruning incomplete snapshot 39577/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 8 Feb 2021 16:53:28 +0000 (11:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 19 Feb 2021 15:39:15 +0000 (10:39 -0500)
commit70b63b45b858ff919e8db8f58176947698cdebb5
tree95d8a2c465cbe7bec29f6068ecbe69fcc3eafb00
parent26118f66151043dbf5ac9abb236b46b0baaeeee3
rbd-mirror: don't prune older mirror snapshots when pruning incomplete snapshot

Since we normally prune in order, we need to ensure that we don't prune older
snapshots when we need to delete an incomplete mirror snapshot since the
older snapshot might be the only remaining mirror snapshot.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7ba9214ea5b73d0436af6c2896abf4836d741de9)
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc