If we are still on monmap epoch 0, our mon ranks cannot yet be trusted
since there is not yet a shared source of truth from paxos. If we do
timechecks, the code gets confused about the ranks in e.g. the
timecheck_waiting map.
Fixes: #7692
Signed-off-by: Sage Weil <sage@inktank.com>
health_monitor->start(epoch);
finish_election();
- if (monmap->size() > 1)
+ if (monmap->size() > 1 &&
+ monmap->get_epoch() > 0)
timecheck_start();
}