]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add no-op event when promoting an image 14974/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 4 May 2017 21:56:22 +0000 (17:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 27 Jun 2017 01:53:13 +0000 (21:53 -0400)
commit9efeb6bc2df559f8d91c480c396b4dd97b981d34
tree5a5b16723617196e4f119884a50ea2a42f16b73c
parent1d71475ff561c7f7d4936774d0ff821786b15fe6
librbd: add no-op event when promoting an image

The rbd-mirror process needs an event in the journal
to properly detect the transition between primary and
non-primary state between peers.

Fixes: http://tracker.ceph.com/issues/19858
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4031555dda7597d24e9eb04b9ff29173909586f7)

Conflicts:
src/librbd/journal/DemoteRequest.cc: logic exists in Journal.cc
qa/workunits/rbd/rbd_mirror.sh
src/librbd/Journal.cc
src/librbd/journal/PromoteRequest.cc
src/librbd/journal/PromoteRequest.h
src/librbd/journal/Replay.cc
src/librbd/journal/Replay.h
src/librbd/journal/Types.cc
src/librbd/journal/Types.h
src/test/librbd/journal/test_mock_PromoteRequest.cc