diff options
-rw-r--r-- | src/mon/Paxos.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index a6f9c3058d9..6ba09dad838 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -750,7 +750,13 @@ void Paxos::handle_commit(MMonPaxos *commit) commit->put(); - mon->refresh_from_paxos(NULL); + bool need_bootstrap = false; + mon->refresh_from_paxos(&need_bootstrap); + if (need_bootstrap) { + dout(10) << " doing requested bootstrap" << dendl; + mon->bootstrap(); + return; + } finish_contexts(g_ceph_context, waiting_for_commit); } |