If our cur_mon is removed from the monmap, reopen the session. Do not
call _pick_new_mon() directly or we won't reset state, won't
reauthenticate, etc.
Signed-off-by: Sage Weil <sage@newdream.net>
if (!monmap.get_addr_name(cur_con->get_peer_addr(), cur_mon)) {
ldout(cct, 10) << "mon." << cur_mon << " went away" << dendl;
- _pick_new_mon(); // can't find the mon we were talking to (above)
+ _reopen_session(); // can't find the mon we were talking to (above)
} else {
_finish_hunting();
}