]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: forced promotion of snapshot mirrored image needs to create orphan
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 13:53:37 +0000 (08:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 15:53:43 +0000 (10:53 -0500)
commit3e7642617a6d9b1f8b14f2e091919332a930671b
treeb909fe9a0cbe46c872f8191aada41bfe8c6fd003
parent106c103829a5c34bb83491178eeac7c00ed99306
librbd: forced promotion of snapshot mirrored image needs to create orphan

Tweak the state machine to create an orphan record if the current
state is not demoted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/PromoteRequest.cc
src/librbd/mirror/snapshot/CreatePrimaryRequest.cc
src/librbd/mirror/snapshot/PromoteRequest.cc
src/librbd/mirror/snapshot/PromoteRequest.h
src/librbd/mirror/snapshot/Utils.cc
src/librbd/mirror/snapshot/Utils.h
src/test/librbd/mirror/snapshot/test_mock_CreatePrimaryRequest.cc
src/test/librbd/mirror/snapshot/test_mock_PromoteRequest.cc
src/test/librbd/mirror/snapshot/test_mock_Utils.cc