mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
elector: off by one check
This commit is contained in:
parent
963c3f0b75
commit
a8baf7b946
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user