]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: tweak misleading "image is still primary" error message 47247/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jul 2022 13:23:57 +0000 (15:23 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 23 Jul 2022 09:36:46 +0000 (11:36 +0200)
commit77affe15d485312e7e12ac6a3d5c3318c90e3bc9
treecc5588f3574162dc64a317320dc4c589e53bcbad
parentc2f1041a2fd2501740041623085ce4245268c9ad
librbd: tweak misleading "image is still primary" error message

m_promotion_state == PROMOTION_STATE_NON_PRIMARY doesn't say anything
about the remote image.  It could still be primary but it could also be
demoted.

Fixes: https://tracker.ceph.com/issues/56676
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 95dd89b4d771a8e01ce52beecc701548bf8321e8)
src/librbd/mirror/PromoteRequest.cc