]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: do not use CEPH_FEATURES_ALL for things that touch the disk 1148/head
authorGreg Farnum <greg@inktank.com>
Fri, 24 Jan 2014 19:07:13 +0000 (11:07 -0800)
committerGreg Farnum <greg@inktank.com>
Fri, 24 Jan 2014 20:33:56 +0000 (12:33 -0800)
commit51ffede3e31c3c32f96cf87ddaeb221327c7f2a4
tree1ddd9d16e8d40b54a71e828ea7f85d36fe733975
parent3d4a6739f2a0db895809ced5976ce9eeb0190963
mon: do not use CEPH_FEATURES_ALL for things that touch the disk

We want to encode with our quorum_features instead. Remaining uses of
CEPH_FEATURES_ALL are:
1) when the Elector is sharing its supported features
2) in a MonMap function which is used by monmaptool
3) In the Monitor for winning a standalone election, for ephemeral data,
  and for doing mkfs (when we necessarily don't have quorum_features).
4) When doing ceph-mon --inject-monmap (we don't persist the quorum_features
  to disk, so we can't use them here).
5) in MMonElection, for doing the default monmap encoding (which is
  re-encoded later if the final features don't match CEPH_FEATURES_ALL).
6) As the default encode features for the OSDMap (the monitor always
  supplies quorum_features instead).

Signed-off-by: Greg Farnum <greg@inktank.com>
src/messages/MMonElection.h
src/mon/Monitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc