]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgrc: enable disabling stats via mgr_stats_threshold 23352/head
authorJohn Spray <john.spray@redhat.com>
Tue, 31 Jul 2018 16:49:00 +0000 (17:49 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 31 Jul 2018 16:51:07 +0000 (17:51 +0100)
Because we had a min_max setting with CRIT the maximum,
it wasn't possible to actually turn off stats entirely.

Fixes: http://tracker.ceph.com/issues/25197
Signed-off-by: John Spray <john.spray@redhat.com>
src/common/options.cc

index 01aab9e47fa78b53599e6b661bdc2f47622b9429..efdb9cef92f668284068a4a213aaf0d6f76b22b9 100644 (file)
@@ -4777,7 +4777,7 @@ std::vector<Option> get_global_options() {
   .set_long_description("Daemons only set perf counter data to the manager "
     "daemon if the counter has a priority higher than this.")
   .set_min_max((int64_t)PerfCountersBuilder::PRIO_DEBUGONLY,
-               (int64_t)PerfCountersBuilder::PRIO_CRITICAL),
+               (int64_t)PerfCountersBuilder::PRIO_CRITICAL + 1),
 
     Option("journal_zero_on_create", Option::TYPE_BOOL, Option::LEVEL_DEV)
     .set_default(false)