Tick function to update the map based on performance every N seconds
*/
-void AuthMonitor::tick()
+void AuthMonitor::tick()
{
if (!is_active()) return;
dout(10) << *this << dendl;
- if (!mon->is_leader()) return;
+ if (!mon->is_leader()) return;
if (check_rotate())
propose_pending();
// reset if we are moving to initial state. we will normally have
// keys in here temporarily for bootstrapping that we need to
// clear out.
- if (keys_ver == 0)
+ if (keys_ver == 0)
mon->key_server.clear_secrets();
dout(20) << __func__ << " walking through version " << (keys_ver+1)
// set up handler?
if (m->protocol == 0 && !s->auth_handler) {
set<__u32> supported;
-
+
try {
__u8 struct_v = 1;
::decode(struct_v, indata);
++p) {
KeyServerData::Incremental auth_inc;
auth_inc.name = p->first;
- auth_inc.auth = p->second;
+ auth_inc.auth = p->second;
auth_inc.op = KeyServerData::AUTH_INC_ADD;
dout(10) << " importing " << auth_inc.name << dendl;
dout(30) << " " << auth_inc.auth << dendl;