]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: tell peers missing features during probe 1637/head
authorSage Weil <sage@inktank.com>
Wed, 9 Apr 2014 23:03:05 +0000 (16:03 -0700)
committerSage Weil <sage@inktank.com>
Wed, 9 Apr 2014 23:03:05 +0000 (16:03 -0700)
commit18642ed351a303490c1b1b654ad3b60a8f7593dc
tree09b4606bab666a253051fe809feae3bf773659ce
parent39ca440bfdbc55d7cf11c337b593fee759cb4713
mon: tell peers missing features during probe

Use a new probe op to inform mons that they are missing features during
the earliest probe phase.  This prevents them from getting as far as
the sync entirely if they are too old.

We still need to refuse to speak to them if they try to call an election,
which they could do based on their replies from other peers.

Note that old clients will assert on getting a message type string they
don't understand, so we need to be careful not to send the probe reply
to older clients.  The feature bit we use is not precise in that it does
not cover recent dev releases, but it does work for dumpling and emperor.

Signed-off-by: Sage Weil <sage@inktank.com>
src/messages/MMonProbe.h
src/mon/Monitor.cc