From: Yan, Zheng Date: Sun, 23 Mar 2014 02:42:25 +0000 (+0800) Subject: mds: reset connection priv after connection's session is removed X-Git-Tag: v0.79~102^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1521%2Fhead;p=ceph.git mds: reset connection priv after connection's session is removed Signed-off-by: Yan, Zheng --- diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 57c7f4a2e66a..6b53c14c6f68 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -2110,6 +2110,7 @@ bool MDS::ms_handle_reset(Connection *con) if (session->is_closed()) { dout(3) << "ms_handle_reset closing connection for session " << session->info.inst << dendl; messenger->mark_down(con); + con->set_priv(NULL); sessionmap.remove_session(session); } session->put(); @@ -2138,6 +2139,7 @@ void MDS::ms_handle_remote_reset(Connection *con) if (session->is_closed()) { dout(3) << "ms_handle_remote_reset closing connection for session " << session->info.inst << dendl; messenger->mark_down(con); + con->set_priv(NULL); sessionmap.remove_session(session); } session->put();