]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: do not attempt to unlink from more recent snapshots 38517/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 10 Dec 2020 04:17:24 +0000 (23:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 10 Dec 2020 13:34:09 +0000 (08:34 -0500)
commit78f8abce2d90d7c9bcf7b4bd4d805c3fe0b39b03
tree811414f5ee8bc1e478705cdb23157b5d5986926e
parent18a45503011a572325e09b56d5ab799a15ee83d4
rbd-mirror: do not attempt to unlink from more recent snapshots

The snapshot-based mirroring replayer should only attempt to unlink
from any snapshots that are older than the end remote snapshot id to
prevent the remote side from incorrectly deleted the snapshot.

Fixes: https://tracker.ceph.com/issues/48527
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc