]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: snapshot replayer should only unlink peers for unneeded snaps
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Feb 2020 15:48:39 +0000 (10:48 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 15:36:40 +0000 (10:36 -0500)
commit450a13ddc7055cd6092555e13f087f626769ce59
treeea08f1cffe4d096162d1c9499696cddf3f2c6b2b
parente4cb7e4d78bcfc3cc96eea5313c101044013cb7b
rbd-mirror: snapshot replayer should only unlink peers for unneeded snaps

Once the snapshot will no longer be needed by the peer for delta sync,
it should be unlinked. This will ensure the primary image will not
remove snapshots that will be needed for the next sync point.

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
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.h