]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: validate that remote start snapshot still exists 39961/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 00:31:45 +0000 (19:31 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:14:01 +0000 (16:14 -0500)
commit66c167641aaa839aaee2cfe6e5c7138fdfccf030
treef961de7426ace364d95d8cbe8a7e0391dca46b05
parent2f042666004930c702aaafef1740c41f84b4e765
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>
(cherry picked from commit fb69efc6c19e6ee2bd8947129fb7f35442acb907)
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc