From b8f04c5e763bb85596f9d29077a7f16f818b216b Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 24 Jun 2019 11:11:36 -0700 Subject: [PATCH] elector: persist the epoch in bump_epoch() I somehow broke this when initially hoisting it out of Elector. Whoops! Signed-off-by: Greg Farnum --- src/mon/ElectionLogic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/ElectionLogic.cc b/src/mon/ElectionLogic.cc index 0d456ba713e..1c4c01d4e9c 100644 --- a/src/mon/ElectionLogic.cc +++ b/src/mon/ElectionLogic.cc @@ -45,7 +45,7 @@ void ElectionLogic::bump_epoch(epoch_t e) ldout(cct, 10) << __func__ << epoch << " to " << e << dendl; ceph_assert(epoch <= e); epoch = e; - elector->validate_store(); + elector->persist_epoch(epoch); // clear up some state electing_me = false; acked_me.clear(); -- 2.39.5