]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: fixed potential bootstrap cancel race condition
authorJason Dillaman <dillaman@redhat.com>
Fri, 22 Feb 2019 18:22:55 +0000 (13:22 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 25 Feb 2019 19:22:25 +0000 (14:22 -0500)
commit91b8a24ea58aee01ec8567195b5aabe11f74b87f
treed19129c9f732906e0dfff167825194736e481342
parent80954cd914c86e11ffb6a8cbfcb21202cb8131b5
rbd-mirror: fixed potential bootstrap cancel race condition

If the image replay was canceled prior to the start of the bootstrap
stage, the image replayer would be stuck attempting to shut down if
the bootstrap is paused behind an image sync.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.h