}
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);
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);
+ }
};