From 6711a4c4038dbdf843f9dfe42c7809c5c37ae534 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 29 Dec 2012 08:38:52 -0800 Subject: [PATCH] Revert "mds: replace closed sessions on connect" This reverts commit 8b599083705c2495810c00f9f5fd5bb8ace7f32e. This fix is not correct. See #3696. --- src/mds/MDS.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 4f857e3f439c..bd4bed91585c 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -2066,12 +2066,6 @@ bool MDS::ms_verify_authorizer(Connection *con, int peer_type, // wire up a Session* to this connection, and add it to the session map entity_name_t n(con->get_peer_type(), global_id); Session *s = sessionmap.get_session(n); - if (s && s->is_closed()) { - dout(10) << " have session " << s << " but it is CLOSED, removing" << dendl; - con->set_priv(NULL); - s->put(); - s = NULL; - } if (!s) { s = new Session; s->inst.addr = con->get_peer_addr(); -- 2.47.3