]> 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)
committerJoao Eduardo Luis <jecluis@gmail.com>
Mon, 17 Mar 2014 15:43:52 +0000 (15:43 +0000)
commita3e57b7231cb28c2e0a896f747537ebdbe3a4e96
tree8880430278a5bebb3bd5a86fa87e1abfb2635e08
parent21ed54201bd4b0f02c07f6f96a63a5720057f011
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>
(cherry picked from commit 7bd2104acfeff0c9aa5e648d82ed372f901f767f)
(cherry picked from commit 1996fd89fb3165a63449b135e05841579695aabd)
src/mon/Monitor.cc