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>
(cherry picked from commit
efe5b67bb700ef6218d9579abf43cc9ecf25ef52)
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);
}