]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove bad assert about monmap version
authorSage Weil <sage@inktank.com>
Fri, 5 Jul 2013 23:03:49 +0000 (16:03 -0700)
committerSage Weil <sage@inktank.com>
Mon, 8 Jul 2013 04:19:41 +0000 (21:19 -0700)
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 <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Monitor.cc

index 3691fd0b5cdd375776e104972a7314ae149844e8..05365a33f7772a1a67a32fac1df8266ea1ce0726 100644 (file)
@@ -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);