From: Kefu Chai Date: Tue, 18 Aug 2015 08:53:50 +0000 (+0800) Subject: mon: print use_gmt_hitset in "ceph osd pool get" X-Git-Tag: v0.94.6~84^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=26c7e968523ac09f608c4ed7c50681fbb741ca1f;p=ceph.git mon: print use_gmt_hitset in "ceph osd pool get" Signed-off-by: Kefu Chai (cherry picked from commit cc2bcf760f2d2f20fc4a2fa78ba52475a23e55bf) Conflicts: src/mon/OSDMonitor.cc use the old way to dump pool info --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 38cb04e96cf93..5c20dd1e9f233 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -3101,6 +3101,7 @@ bool OSDMonitor::preprocess_command(MMonCommand *m) if (!p->is_tier() && (var == "hit_set_type" || var == "hit_set_period" || var == "hit_set_count" || var == "hit_set_fpp" || + var == "use_gmt_hitset" || var == "target_max_objects" || var == "target_max_bytes" || var == "cache_target_full_ratio" || var == "cache_target_dirty_ratio" || @@ -3153,6 +3154,8 @@ bool OSDMonitor::preprocess_command(MMonCommand *m) BloomHitSet::Params *bloomp = static_cast(p->hit_set_params.impl.get()); f->dump_float("hit_set_fpp", bloomp->get_fpp()); } + } else if (var == "use_gmt_hitset") { + f->dump_bool("use_gmt_hitset", p->use_gmt_hitset); } else if (var == "target_max_objects") { f->dump_unsigned("target_max_objects", p->target_max_objects); } else if (var == "target_max_bytes") { @@ -3210,6 +3213,8 @@ bool OSDMonitor::preprocess_command(MMonCommand *m) } BloomHitSet::Params *bloomp = static_cast(p->hit_set_params.impl.get()); ss << "hit_set_fpp: " << bloomp->get_fpp(); + } else if (var == "use_gmt_hitset") { + ss << "use_gmt_hitset: " << p->use_gmt_hitset << "\n"; } else if (var == "target_max_objects") { ss << "target_max_objects: " << p->target_max_objects; } else if (var == "target_max_bytes") {