We should instead rely on the keepalives and automatic reconnects by the
MonClient.
Fixes: http://tracker.ceph.com/issues/36493
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
<< "s since last acked beacon" << dendl;
}
laggy = true;
- auto last_reconnect = std::chrono::duration<double>(now-last_mon_reconnect).count();
- if (since > (g_conf()->mds_beacon_grace*2) && last_reconnect > g_conf()->mds_beacon_interval) {
- // maybe it's not us?
- dout(1) << "initiating monitor reconnect; maybe we're not the slow one"
- << dendl;
- last_mon_reconnect = now;
- monc->reopen_session();
- }
return true;
}
return false;
version_t last_seq = 0; // last seq sent to monitor
std::map<version_t,time> seq_stamp; // seq # -> time sent
time last_acked_stamp = clock::zero(); // last time we sent a beacon that got acked
- time last_mon_reconnect = clock::zero();
bool laggy = false;
time last_laggy = clock::zero();