]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: do not attempt to replay incomplete primary snapshots 33166/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 17:03:10 +0000 (12:03 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 17:19:14 +0000 (12:19 -0500)
commita04aae75ebddfe6dc72a731a3669d5354a9d68ed
treef1921b9e45fc3256ed2d9d785c67bb386ad58256
parent5f51080f587c35cf9726661d0dc331d9e3075808
rbd-mirror: do not attempt to replay incomplete primary snapshots

In case we race with the creation of a primary mirror snapshot,
do not attempt to replay incomplete snapshots. Once the image
state has been successfully written, the snapshot will be flagged
as complete and an update notification will be sent.

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