From: Sage Weil Date: Tue, 1 Nov 2016 16:09:57 +0000 (-0400) Subject: mon: remove config option to disable no sortbitwise warning X-Git-Tag: v11.1.0~405^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=04e3319e8aecde9ca58ccb7c89016f9079c7d657;p=ceph.git mon: remove config option to disable no sortbitwise warning We'll require this soon. Signed-off-by: Sage Weil --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 4b1fa42d3cb6..c96dff55a1b9 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -280,7 +280,6 @@ OPTION(mon_crush_min_required_version, OPT_STR, "firefly") OPTION(mon_warn_on_crush_straw_calc_version_zero, OPT_BOOL, true) // warn if crush straw_calc_version==0 OPTION(mon_warn_on_osd_down_out_interval_zero, OPT_BOOL, true) // warn if 'mon_osd_down_out_interval == 0' OPTION(mon_warn_on_cache_pools_without_hit_sets, OPT_BOOL, true) -OPTION(mon_warn_on_no_sortbitwise, OPT_BOOL, true) // warn when sortbitwise not set OPTION(mon_min_osdmap_epochs, OPT_INT, 500) OPTION(mon_max_pgmap_epochs, OPT_INT, 500) OPTION(mon_max_log_epochs, OPT_INT, 500) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index d3cd044391dd..819687e46b8a 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -3058,8 +3058,7 @@ void OSDMonitor::get_health(list >& summary, } // Not using 'sortbitwise' and should be? - if (g_conf->mon_warn_on_no_sortbitwise && - !osdmap.test_flag(CEPH_OSDMAP_SORTBITWISE) && + if (!osdmap.test_flag(CEPH_OSDMAP_SORTBITWISE) && (osdmap.get_features(CEPH_ENTITY_TYPE_OSD, NULL) & CEPH_FEATURE_OSD_BITWISE_HOBJ_SORT)) { ostringstream ss;