]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: re-use mirror promote state machine when disabling
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Mar 2020 22:32:03 +0000 (18:32 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 Mar 2020 23:23:02 +0000 (19:23 -0400)
commit672968f9c753f5a6f0e85ea872ddad639b6c01f3
tree7df80abefbd1eeb937c8e5eaaf2624909e306a03
parent814c13a8cfb12568baa5c6978965edd68c908b1a
librbd: re-use mirror promote state machine when disabling

The promote state machine will handle remove the non-primary
feature bit and will ensure an interrupted disable operation
doesn't leave things in an inconsistent state.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/DisableRequest.cc
src/librbd/mirror/DisableRequest.h
src/test/librbd/mirror/test_mock_DisableRequest.cc