Only way to get the first and last committed version for logm and
mgrstat is through the monstore db dump. Reporting first and last
committed version for logm and mgrstat in ceph report will help in
debugging monstore is too big issues.
Signed-off-by: Prashant D <pdhange@redhat.com>
return false;
}
+void LogMonitor::dump_info(Formatter *f)
+{
+ f->dump_unsigned("logm_first_committed", get_first_committed());
+ f->dump_unsigned("logm_last_committed", get_last_committed());
+}
int LogMonitor::sub_name_to_id(const string& n)
{
void tick() override; // check state, take actions
+ void dump_info(Formatter *f);
void check_subs();
void check_sub(Subscription *s);
void dump_info(ceph::Formatter *f) const {
digest.dump(f);
f->dump_object("servicemap", get_service_map());
+ f->dump_unsigned("mgrstat_first_committed", get_first_committed());
+ f->dump_unsigned("mgrstat_last_committed", get_last_committed());
}
void dump_cluster_stats(std::stringstream *ss,
ceph::Formatter *f,
mdsmon()->dump_info(f.get());
authmon()->dump_info(f.get());
mgrstatmon()->dump_info(f.get());
+ logmon()->dump_info(f.get());
paxos->dump_info(f.get());