From c94c33b9a6e0a0bd2ddfdb73d270c09553e81148 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Oct 2014 09:45:16 -0700 Subject: [PATCH] mon/PGMonitor: do not report per-category stats Signed-off-by: Sage Weil --- src/mon/PGMonitor.cc | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index cc6a1fafcd6cd..b8d557a7c6526 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1384,28 +1384,6 @@ void PGMonitor::dump_pool_stats(stringstream &ss, Formatter *f, bool verbose) else tbl << TextTable::endrow; - if (verbose) { - if (f) - f->open_array_section("categories"); - - for (map::iterator it = stat.stats.cat_sum.begin(); - it != stat.stats.cat_sum.end(); ++it) { - if (f) { - f->open_object_section(it->first.c_str()); - } else { - tbl << "" - << "" - << it->first; - } - dump_object_stat_sum(tbl, f, it->second, avail, verbose); - if (f) - f->close_section(); // category name - else - tbl << TextTable::endrow; - } - if (f) - f->close_section(); // categories - } if (f) f->close_section(); // pool } -- 2.39.5