If we get a monmap update, the leader bootstraps. Peons should do the
same.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
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);
}