The refresh() will do this when the state changes; no need to
opportunistically call this method all of the time.
Signed-off-by: Sage Weil <sage@inktank.com>
{
if (!is_active()) return;
- update_from_paxos();
dout(10) << *this << dendl;
if (!mon->is_leader()) return;
{
if (!is_active()) return;
- update_from_paxos();
dout(10) << *this << dendl;
if (!mon->is_leader()) return;
// ...if i am an active leader
if (!is_active()) return;
- update_from_paxos();
dout(10) << mdsmap << dendl;
bool do_propose = false;
void MonmapMonitor::tick()
{
- update_from_paxos();
}
void MonmapMonitor::get_health(list<pair<health_status_t, string> >& summary,
{
if (!is_active()) return;
- update_from_paxos();
dout(10) << osdmap << dendl;
if (!mon->is_leader()) return;
{
if (!is_active()) return;
- update_from_paxos();
handle_osd_timeouts();
if (mon->is_leader()) {