]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: ensure forced-failover cannot result in sync state 17979/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 26 Sep 2017 19:46:28 +0000 (15:46 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 27 Sep 2017 12:19:21 +0000 (08:19 -0400)
commitbc96c53d947625d12f7b30a45da68a96c09faf70
treed4a0ab5851914cb25cd1ff337fc87d96d4ab17a4
parente3b58312572ceb7abc675128dfb231c9b888655e
rbd-mirror: ensure forced-failover cannot result in sync state

If the local image already exists and the local image isn't
registered in the remote journal, it should be assumed that
it's already in the replaying state so it can verify the
ancestry to detect split-brains.

Fixes: http://tracker.ceph.com/issues/21559
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