]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: track intersection of quorum member features
authorSage Weil <sage@inktank.com>
Thu, 21 Jun 2012 03:33:41 +0000 (20:33 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 22 Jun 2012 00:10:29 +0000 (17:10 -0700)
commit06288a9d10281e4a3cfdc6e69a3e1427b160571c
treee75d0456ade4b13a0c5b2ecfa24644ccf92398d1
parent2355b233ea976e7cd31546498e96f44375b845eb
mon: track intersection of quorum member features

When we form a quorum, also note the intersection of the quorum members'
feature bits.  This will inform decisions about what encodings we use.

This is an imperfect strategy because the quorum may change, and we may
have a mon with old code join in and not understand what is going on.
However, it does ensure that a majority of the members run new code, so in
the absence of other failures we can make progress.

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