]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: disable gmt_hitset if not supported 5837/head
authorKefu Chai <kchai@redhat.com>
Tue, 8 Sep 2015 08:52:32 +0000 (16:52 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 8 Sep 2015 08:56:04 +0000 (16:56 +0800)
the gmt_hitset is enabled by default in the ctor of pg_pool_t, this
is intentional. because we want to remove this setting and make
gmt_hitset=true as a default in future. but this forces us to
disable it explicitly when preparing a new pool if any OSD does
not support gmt hitset.

Fixes: #12968
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index 06dd21808c1eb17a37dbe50d3d863dbac53a41de..49fbe79353e6ad0f93ae59b2b175e1cad4e2db40 100644 (file)
@@ -4536,6 +4536,8 @@ int OSDMonitor::prepare_new_pool(string& name, uint64_t auid,
   if (g_conf->osd_pool_use_gmt_hitset &&
       (osdmap.get_up_osd_features() & CEPH_FEATURE_OSD_HITSET_GMT))
     pi->use_gmt_hitset = true;
+  else
+    pi->use_gmt_hitset = false;
 
   if (pool_type == pg_pool_t::TYPE_ERASURE) {
     switch (fast_read) {