]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
elector: off by one check
authorSage Weil <sage@newdream.net>
Fri, 7 Aug 2009 21:59:09 +0000 (14:59 -0700)
committerSage Weil <sage@newdream.net>
Mon, 10 Aug 2009 20:14:31 +0000 (13:14 -0700)
src/mon/Elector.cc

index 4322d149db8c7419fbc25d0ce6cb6f1a3384ac04..6511eeeaf3bd597be5a953ded786ae405d0d437a 100644 (file)
@@ -49,7 +49,7 @@ void Elector::shutdown()
 void Elector::bump_epoch(epoch_t e) 
 {
   dout(10) << "bump_epoch " << epoch << " to " << e << dendl;
-  assert(epoch < e);
+  assert(epoch <= e);
   epoch = e;
   mon->store->put_int(epoch, "election_epoch");