elector: off by one check

This commit is contained in:
Sage Weil 2009-08-07 14:59:09 -07:00
parent 963c3f0b75
commit a8baf7b946

View 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");