]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: do not report per-category stats
authorSage Weil <sage@redhat.com>
Fri, 31 Oct 2014 16:45:16 +0000 (09:45 -0700)
committerSage Weil <sage@redhat.com>
Mon, 1 Dec 2014 17:36:13 +0000 (09:36 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc

index cc6a1fafcd6cdf1ddeeee4d4fd783d1a9424a600..b8d557a7c65264f4f86d5242a3097b43821aff89 100644 (file)
@@ -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
   }