]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Elector: send an OP_NAK MMonElection to old peers who support it
authorGreg Farnum <greg@inktank.com>
Thu, 23 Jan 2014 22:52:40 +0000 (14:52 -0800)
committerGreg Farnum <greg@inktank.com>
Fri, 24 Jan 2014 20:33:56 +0000 (12:33 -0800)
commit3d4a6739f2a0db895809ced5976ce9eeb0190963
treee841f45155ceb0bf7cb59aa814c70bc98b74983c
parent687b570b719d34abebf1673b001f40b96e15189f
Elector: send an OP_NAK MMonElection to old peers who support it

Only new monitors support receiving OP_NAK from a peer without crashing, but
when we add new required features in the future, our monitors can accept
an OP_NAK message which tells them what features they're missing. Then they
will print out an error message and shut down.
(Unfortunately, doing a clean shutdown from here would require a lot of
infrastructure, so we just call exit(0).)

Signed-off-by: Greg Farnum <greg@inktank.com>
src/include/ceph_features.h
src/messages/MMonElection.h
src/mon/Elector.cc
src/mon/Elector.h