diff options
-rw-r--r-- | src/mon/Paxos.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 445413da13b..0fcd3b13903 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -793,17 +793,11 @@ void Paxos::handle_commit(MMonPaxos *commit) store_state(commit); - commit->put(); - - bool need_bootstrap = false; - mon->refresh_from_paxos(&need_bootstrap); - if (need_bootstrap) { - dout(10) << " doing requested bootstrap" << dendl; - mon->bootstrap(); - return; + if (do_refresh()) { + finish_contexts(g_ceph_context, waiting_for_commit); } - finish_contexts(g_ceph_context, waiting_for_commit); + commit->put(); } void Paxos::extend_lease() |