From 8e141f4a267e5ab0cd9b707dda72bba9a99fb094 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 12 Sep 2011 21:23:00 -0700 Subject: [PATCH] monclient: reopen session on monmap change 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 --- src/mon/MonClient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 2d48fd857bfc5..187ea50f21cdd 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -325,7 +325,7 @@ void MonClient::handle_monmap(MMonMap *m) 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(); } -- 2.39.5