This ensure we keep the mon session alive, even if the user
doesn't subscribe to anything else.
dout(10) << "get_monmap" << dendl;
Mutex::Locker l(monc_lock);
+ _sub_want("monmap", monmap.get_epoch());
want_monmap = true;
if (cur_mon < 0)
_reopen_session();
map_cond.Wait(monc_lock);
dout(10) << "get_monmap done" << dendl;
-
return 0;
}
}
// only first mounter does the work
+ _sub_want("monmap", monmap.get_epoch());
mounting++;
if (mounting == 1) {
if (cur_mon < 0)