]> git.apps.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 16:33:14 +0000 (09:33 -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>
(cherry picked from commit 85a1d6cc5d3852c94d1287b566656c5b5024fa13)

src/mon/Monitor.cc

index 42fc15c5905bf7b7fcdfdb9623f090afcec3ef33..9d436f1e5690595b0a0f32383eae5fa9d0747088 100644 (file)
@@ -1384,7 +1384,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);