]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: tweak misleading "image is still primary" error message 47242/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jul 2022 13:23:57 +0000 (15:23 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jul 2022 14:21:49 +0000 (16:21 +0200)
commit95dd89b4d771a8e01ce52beecc701548bf8321e8
treec0a73b0e8f0734d9a6ac9fec03c7367323b6642a
parentaea6200abdd63d87723dd1636a582a47ba73fb71
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>
src/librbd/mirror/PromoteRequest.cc