]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: do not attempt to unlink from more recent snapshots
authorJason Dillaman <dillaman@redhat.com>
Thu, 10 Dec 2020 04:17:24 +0000 (23:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:10:32 +0000 (16:10 -0500)
commitec9a4e1cf5c9843883c7a32e474da1beacd3ce81
tree6e2082d8817991424fe5c0d572bddf87e1dfff77
parente98312db34a25197c21ea98806986b39b190ad66
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>
(cherry picked from commit 78f8abce2d90d7c9bcf7b4bd4d805c3fe0b39b03)
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc