]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mempool: make dump more concise
authorSage Weil <sage@redhat.com>
Wed, 31 May 2017 20:53:33 +0000 (16:53 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Jun 2017 02:20:03 +0000 (22:20 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/mempool.cc

index b6666d6b41b655b49008663c7c6e5a5fb00e0630..3a9cdba4fcc22cc9cb2b9548bfe6962e497412a8 100644 (file)
@@ -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();
   }
 }