From affc9ef69c3cc6864b19fd2b98c6386819ef6d4d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 31 May 2017 16:53:33 -0400 Subject: [PATCH] mempool: make dump more concise Signed-off-by: Sage Weil --- src/common/mempool.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/mempool.cc b/src/common/mempool.cc index b6666d6b41b..3a9cdba4fcc 100644 --- a/src/common/mempool.cc +++ b/src/common/mempool.cc @@ -113,12 +113,14 @@ void mempool::pool_t::dump(ceph::Formatter *f, stats_t *ptotal) const if (ptotal) { *ptotal += total; } - f->dump_object("total", total); + total.dump(f); if (!by_type.empty()) { + f->open_object_section("by_type"); for (auto &i : by_type) { f->open_object_section(i.first.c_str()); i.second.dump(f); f->close_section(); } + f->close_section(); } } -- 2.47.3