]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: refactor monitor feature checks
authorSage Weil <sage@inktank.com>
Wed, 12 Sep 2012 23:22:26 +0000 (16:22 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Sep 2012 00:33:01 +0000 (17:33 -0700)
commitebdfd4badfaf46c87fcd5a631ffb556b7e2642f4
tree12882d37bc8f70be04a3753556b1a6d165979bec
parente84f2e492658aaf0466914ff98651d4c22a9e8b7
mon: refactor monitor feature checks

Three helpers:
 - legacy features (if file isn't present)
 - required features
 - supported features

Write out the feature file on startup with legacy values if it isn't
present, so that everything else can assume it is there.

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