]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: yet more OSDMonitor dep-pgmap-ification
authorGreg Farnum <gfarnum@redhat.com>
Wed, 15 Mar 2017 00:18:36 +0000 (17:18 -0700)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 16:59:14 +0000 (12:59 -0400)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/OSDMonitor.cc
src/mon/PGStatService.h

index e03c7e1bcd4aa89c4dd7be3897562473e0df4226..b90115ffe385b952f8facd48f3e619782b24c9d7 100644 (file)
@@ -4854,9 +4854,8 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
     }
     r = 0;
   } else if (prefix == "osd pool stats") {
-    const auto &pgm = mon->pgmon()->pg_map;
-    r = process_pg_map_command(prefix, cmdmap, pgm, osdmap,
-                              f.get(), &ss, &rdata);
+    r = process_pg_map_command(prefix, cmdmap, mon->pgservice.get_pg_map(),
+                              osdmap, f.get(), &ss, &rdata);
   } else if (prefix == "osd pool get-quota") {
     string pool_name;
     cmd_getval(g_ceph_context, cmdmap, "pool", pool_name);
index 660ad9e50f74f65a95b832542a88ecdd55bd7532..357d18c0020a458bbd1ad697bc0d9db21c654c34 100644 (file)
@@ -67,6 +67,15 @@ public:
 
   bool have_full_osds() const { return !parent.full_osds.empty(); }
   bool have_nearfull_osds() const { return !parent.nearfull_osds.empty(); }
+
+  void print_summary(Formatter *f, ostream *out) const { parent.print_summary(f, out); }
+  void dump_fs_stats(stringstream *ss, Formatter *f, bool verbose) const {
+    parent.dump_fs_stats(ss, f, verbose);
+  }
+  void dump_pool_stats(const OSDMap& osdm, stringstream *ss, Formatter *f,
+                      bool verbose) const {
+    parent.dump_pool_stats(osdm, ss, f, verbose);
+  }
 };