From: Sage Weil Date: Wed, 31 May 2017 20:53:33 +0000 (-0400) Subject: mempool: make dump more concise X-Git-Tag: ses5-milestone6~9^2~12^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=affc9ef69c3cc6864b19fd2b98c6386819ef6d4d;p=ceph.git mempool: make dump more concise Signed-off-by: Sage Weil --- diff --git a/src/common/mempool.cc b/src/common/mempool.cc index b6666d6b41b6..3a9cdba4fcc2 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(); } }