The last_beacon map is local to an election interval; if there is a new
election completed we should reset it or else we may kill an apparently
laggy mgr that hasn't been able to get a beacon processed due to the mon
quorum changing, or had its beacon processed on a different leader.
Signed-off-by: Sage Weil <sage@redhat.com>
}
}
+void MgrMonitor::on_restart()
+{
+ // Clear out the leader-specific state.
+ last_beacon.clear();
+}
+
+
bool MgrMonitor::promote_standby()
{
assert(pending_map.active_gid == 0);
void send_digests();
void on_active() override;
+ void on_restart() override;
+
void get_health(list<pair<health_status_t,string> >& summary,
list<pair<health_status_t,string> > *detail,
CephContext *cct) const override;