mds: reset connection priv after connection's session is removed

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
Yan, Zheng 2014-03-23 10:42:25 +08:00
parent 361b251e15
commit fb72330fb3

View File

@ -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();