Signed-off-by: Sage Weil <sage@redhat.com>
PG *pg = it->second;
f->dump_stream("pg") << pg->pg_id;
- pg->lock();
- pg->pgstate_history.dump(f);
- pg->unlock();
+ pg->dump_pgstate_history(f);
}
f->close_section();
} else if (admin_command == "compact") {
out << ")";
return out;
}
+
+void PG::dump_pgstate_history(Formatter *f)
+{
+ lock();
+ pgstate_history.dump(f);
+ unlock();
+}
virtual void get_watchers(std::list<obj_watch_item_t> *ls) = 0;
+ void dump_pgstate_history(Formatter *f);
+
virtual void do_request(
OpRequestRef& op,
ThreadPool::TPHandle &handle