]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgrc: enable disabling stats via mgr_stats_threshold 23463/head
authorJohn Spray <john.spray@redhat.com>
Tue, 31 Jul 2018 16:49:00 +0000 (17:49 +0100)
committerPrashant D <pdhange@redhat.com>
Tue, 7 Aug 2018 02:29:55 +0000 (22:29 -0400)
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>
(cherry picked from commit 911fe5ce4fb5d0a7282dad87c2bfe6528c4f2fcf)

src/common/options.cc

index dd7c5d37444d248b7a23ac34888ca5f6088bbb5f..bc09af4f89f149935e71fcc5494d01d01774b871 100644 (file)
@@ -4693,7 +4693,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)