From 805e5d7bb61345230549dacece6c196b00a69168 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 20 Aug 2014 20:57:56 -0700 Subject: [PATCH] mon/Paxos: flush io on reset() Signed-off-by: Sage Weil --- src/mon/Paxos.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 03058781b6f6..c85beaabbf41 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -1339,6 +1339,13 @@ void Paxos::restart() cancel_events(); new_value.clear(); + if (is_writing()) { + dout(10) << __func__ << " flushing" << dendl; + mon->lock.Unlock(); + mon->store->flush(); + mon->lock.Lock(); + dout(10) << __func__ << " flushed" << dendl; + } state = STATE_RECOVERING; finish_contexts(g_ceph_context, proposals, -EAGAIN); -- 2.47.3