]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: tweak misleading "image is still primary" error message 47248/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jul 2022 13:23:57 +0000 (15:23 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Aug 2022 15:19:03 +0000 (17:19 +0200)
commit1516a2a996d7c3c8c1b1669c1d744189ad81396a
tree177a447d381d4207c8da05f72ece673fd70d6049
parent626dc8e801a2199309d926f8b7f7c451c3ca9a7f
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