mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
mon/PGMonitor: do not report per-category stats
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
387d055f13
commit
c94c33b9a6
@ -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<string,object_stat_sum_t>::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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user