]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: only learn peer addresses when monmap == 0
authorSage Weil <sage@inktank.com>
Fri, 14 Feb 2014 19:13:26 +0000 (11:13 -0800)
committerSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 04:27:44 +0000 (20:27 -0800)
commit7bd2104acfeff0c9aa5e648d82ed372f901f767f
treed4cbbf89109d64f1af46221571541cc5b31de68f
parentea6dc997668df98c0a553d677cf22850b476e412
mon: only learn peer addresses when monmap == 0

It is only safe to dynamically update the address for a peer mon in our
monmap if we are in the midst of the initial quorum formation (i.e.,
monmap.epoch == 0).  If it is a later epoch, we have formed our initial
quorum and any and all monmap changes need to be agreed upon by the quorum
and committed via paxos.

Fixes: #7212
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc