]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonMap: separate rank ordering from entity_addr_t
authorSage Weil <sage@redhat.com>
Wed, 23 May 2018 17:52:06 +0000 (12:52 -0500)
committerSage Weil <sage@redhat.com>
Sun, 27 May 2018 22:16:50 +0000 (17:16 -0500)
commit50381d885ff1b10e891e187170ed4f7f24167b08
tree1f0460adc66eccdeaeb16eec579986337facd633
parentc0c7f45522355f2c07994a1ceb10501d0f746766
mon/MonMap: separate rank ordering from entity_addr_t

We currently define the mon rank ordering based on the sort order of the
mon addresses.  Change that so that the rank order is explicitly encoded
in the ranks field of the MonMap.

If we load a legacy MonMap, calculate the legacy ordering.

If the monmap does not require nautilus features yet, force the legacy
ordering.  Once all mons are >= nautilus, we can reorder ranks.  Note that
the daemons and clients (MonClients) may see a different rank ordering.
That should be okay.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonMap.cc
src/mon/MonMap.h