From: Sage Weil Date: Fri, 14 Mar 2014 18:02:30 +0000 (-0700) Subject: mon: only do timecheck with known monmap X-Git-Tag: v0.78~22^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1461%2Fhead;p=ceph.git mon: only do timecheck with known monmap 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 --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 5697d0e97a5d..a2d11120625b 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1601,7 +1601,8 @@ void Monitor::win_election(epoch_t epoch, set& active, uint64_t features, health_monitor->start(epoch); finish_election(); - if (monmap->size() > 1) + if (monmap->size() > 1 && + monmap->get_epoch() > 0) timecheck_start(); }