]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reset connection's priv when marking down connection 20432/head
authorYan, Zheng <zyan@redhat.com>
Mon, 29 Jan 2018 02:00:54 +0000 (10:00 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 14 Feb 2018 09:38:26 +0000 (04:38 -0500)
mds won't get reset for down connection, so it needs to break
circle reference between connection and session.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 1526e0884a7b4d8d8d4f9ba37487a6d51da90992)

src/mds/Server.cc

index b7875cfa78e5fa03b01ae7f173e4f2428fa2ca9f..511e9784f001cb148c253e6b4eeb326a099e0372 100644 (file)
@@ -560,7 +560,8 @@ void Server::_session_logged(Session *session, uint64_t state_seq, bool open, ve
     } else if (session->is_killing()) {
       // destroy session, close connection
       if (session->connection != NULL) {
-        session->connection->mark_down();
+       session->connection->mark_down();
+       session->connection->set_priv(NULL);
       }
       mds->sessionmap.remove_session(session);
     } else {