]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix legacy tunables warning
authorSage Weil <sage@inktank.com>
Wed, 12 Feb 2014 21:18:04 +0000 (13:18 -0800)
committerSage Weil <sage@inktank.com>
Wed, 12 Feb 2014 21:18:04 +0000 (13:18 -0800)
Warn on legacy tunables, not on non-optimal tunables.  Optimal is a moving
target, but it is really the legacy defaults that we want to push people
off of.

Fixes: #7399
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc

index 9d5ee1cbcf1bc1e9d5584d4af548419ce2c19776..a3ff89abedcbbdd585ec0d56576586730361cb52 100644 (file)
@@ -2010,9 +2010,9 @@ void OSDMonitor::get_health(list<pair<health_status_t,string> >& summary,
 
     // old crush tunables?
     if (g_conf->mon_warn_on_legacy_crush_tunables) {
-      if (!osdmap.crush->has_optimal_tunables()) {
+      if (osdmap.crush->has_legacy_tunables()) {
        ostringstream ss;
-       ss << "crush map has non-optimal tunables";
+       ss << "crush map has legacy tunables";
        summary.push_back(make_pair(HEALTH_WARN, ss.str()));
        if (detail) {
          ss << "; see http://ceph.com/docs/master/rados/operations/crush-map/#tunables";