From: Sage Weil Date: Fri, 5 Jul 2013 23:03:49 +0000 (-0700) Subject: mon: remove bad assert about monmap version X-Git-Tag: v0.66~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85a1d6cc5d3852c94d1287b566656c5b5024fa13;p=ceph.git mon: remove bad assert about monmap version It is possible to start a sync when our newest monmap is 0. Usually we see e0 from probe, but that isn't always published as part of the very first paxos transaction due to the way PaxosService::_active generates it's first initial commit. In any case, having e0 here is harmless. Fixes: #5509 Signed-off-by: Sage Weil Reviewed-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 3691fd0b5cdd..05365a33f777 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1389,7 +1389,6 @@ void Monitor::sync_obtain_latest_monmap(bufferlist &bl) if (monmap->epoch > latest_monmap.epoch) latest_monmap = *monmap; - assert(latest_monmap.epoch > 0); dout(1) << __func__ << " obtained monmap e" << latest_monmap.epoch << dendl; latest_monmap.encode(bl, CEPH_FEATURES_ALL);