]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: validate that remote start snapshot still exists 38536/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 00:31:45 +0000 (19:31 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 14 Dec 2020 20:59:40 +0000 (15:59 -0500)
commitfb69efc6c19e6ee2bd8947129fb7f35442acb907
tree9017129120c7c4a36c4a3bb8c183d286de6ba55b
parenta888bff8d00e3e496ec80e4273e01a47b67da5dc
rbd-mirror: validate that remote start snapshot still exists

Perform a basic sanity check to verify that the remote start snapshot
still exists. This was previosly being deleted as part of the unlink
process due to a race condition between the remote side completing
a sync between snapshots 1 and 2 and snapshot 2 being unlinked due
to reaching max snapshots.

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