]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: add no-op event when promoting an image
authorJason Dillaman <dillaman@redhat.com>
Thu, 4 May 2017 21:56:22 +0000 (17:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 5 May 2017 00:26:03 +0000 (20:26 -0400)
commit4031555dda7597d24e9eb04b9ff29173909586f7
treecedc275d4748b68bde62e6d0561a97719bdc8bdc
parent23ad14377f7364bb43e70648c52fc8d3c3481480
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>
qa/workunits/rbd/rbd_mirror.sh
src/librbd/journal/DemoteRequest.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