]> 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 39428/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 8 Feb 2021 16:53:28 +0000 (11:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 18:52:19 +0000 (13:52 -0500)
commitd0bbed58a403ef1443a1b47ab7b210eefafe1894
tree4da21e259f900888b34e1d615d601815c78f1c5f
parentfa04975242f747c946cc60332918007228928204
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