]> 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 39155/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 8 Feb 2021 16:53:28 +0000 (11:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 8 Feb 2021 16:53:28 +0000 (11:53 -0500)
commit7ba9214ea5b73d0436af6c2896abf4836d741de9
tree9ac219f54fc645ff06eef2d2159c53d9103d2d16
parentf079116e87161b55acaa08c55bf8b8e79cee8670
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>
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc