map<EntityName, EntityAuth>::const_iterator b = data.secrets_begin();
return (b != data.secrets_end());
}
+ int get_num_secrets() {
+ return data.secrets.size();
+ }
/*void add_rotating_secret(uint32_t service_id, ExpiringCryptoKey& key) {
Mutex::Locker l(lock);
propose_pending();
}
}
+
+void AuthMonitor::dump_info(Formatter *f)
+{
+ /*** WARNING: do not include any privileged information here! ***/
+ f->open_object_section("auth");
+ f->dump_unsigned("first_committed", get_first_committed());
+ f->dump_unsigned("last_committed", get_last_committed());
+ f->dump_unsigned("num_secrets", mon->key_server.get_num_secrets());
+ f->close_section();
+}
void pre_auth(MAuth *m);
void tick(); // check state, take actions
+
+ void dump_info(Formatter *f);
};
osdmon()->dump_info(f.get());
mdsmon()->dump_info(f.get());
pgmon()->dump_info(f.get());
+ authmon()->dump_info(f.get());
paxos->dump_info(f.get());