From: Sage Weil Date: Thu, 21 Aug 2014 03:57:56 +0000 (-0700) Subject: mon/Paxos: flush io on reset() X-Git-Tag: v0.86~190^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=805e5d7bb61345230549dacece6c196b00a69168;p=ceph.git mon/Paxos: flush io on reset() Signed-off-by: Sage Weil --- 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);