]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: ensure remote demotion is replayed locally 21823/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 4 May 2018 15:14:34 +0000 (11:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 9 May 2018 13:42:40 +0000 (09:42 -0400)
commitd35bc94319c6fa267e973e533f4591568289ee96
tree00a5a51cd027175407a3fbc7de65b60160a2411e
parent4afd5ece9c99f85e15851c3df5918f02ed4263c3
rbd-mirror: ensure remote demotion is replayed locally

The bootstrap process cannot immediately quit if it notices the remote
image is not primary. Instead, it needs to continue if the local image is
still chained to the remote.

Fixes: http://tracker.ceph.com/issues/24009
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.h
src/tools/rbd_mirror/image_replayer/IsPrimaryRequest.cc
src/tools/rbd_mirror/image_replayer/OpenLocalImageRequest.cc