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: v9.1.0~297^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cc2bcf760f2d2f20fc4a2fa78ba52475a23e55bf;p=ceph.git mon: print use_gmt_hitset in "ceph osd pool get" Signed-off-by: Kefu Chai --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 2d07e311372b..5d720277fd8b 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2824,7 +2824,7 @@ namespace { enum osd_pool_get_choices { SIZE, MIN_SIZE, CRASH_REPLAY_INTERVAL, PG_NUM, PGP_NUM, CRUSH_RULESET, HIT_SET_TYPE, - HIT_SET_PERIOD, HIT_SET_COUNT, HIT_SET_FPP, + HIT_SET_PERIOD, HIT_SET_COUNT, HIT_SET_FPP, USE_GMT_HITSET, AUID, TARGET_MAX_OBJECTS, TARGET_MAX_BYTES, CACHE_TARGET_DIRTY_RATIO, CACHE_TARGET_DIRTY_HIGH_RATIO, CACHE_TARGET_FULL_RATIO, @@ -3272,6 +3272,7 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op) ("pg_num", PG_NUM)("pgp_num", PGP_NUM)("crush_ruleset", CRUSH_RULESET) ("hit_set_type", HIT_SET_TYPE)("hit_set_period", HIT_SET_PERIOD) ("hit_set_count", HIT_SET_COUNT)("hit_set_fpp", HIT_SET_FPP) + ("use_gmt_hitset", USE_GMT_HITSET) ("auid", AUID)("target_max_objects", TARGET_MAX_OBJECTS) ("target_max_bytes", TARGET_MAX_BYTES) ("cache_target_dirty_ratio", CACHE_TARGET_DIRTY_RATIO) @@ -3389,6 +3390,9 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op) } } break; + case USE_GMT_HITSET: + f->dump_bool("use_gmt_hitset", p->use_gmt_hitset); + break; case TARGET_MAX_OBJECTS: f->dump_unsigned("target_max_objects", p->target_max_objects); break; @@ -3490,6 +3494,9 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op) } } break; + case USE_GMT_HITSET: + ss << "use_gmt_hitset: " << p->use_gmt_hitset << "\n"; + break; case TARGET_MAX_OBJECTS: ss << "target_max_objects: " << p->target_max_objects << "\n"; break;