]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reset connection's priv when marking down connection
authorYan, Zheng <zyan@redhat.com>
Mon, 29 Jan 2018 02:00:54 +0000 (10:00 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 2 Apr 2018 10:29:39 +0000 (12:29 +0200)
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 e44aafe9902fba57999d536dcc4e4956aad1072a..3cd2bdfe1295b82bed02d0812a7bf8ae52d65b0f 100644 (file)
@@ -447,7 +447,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 {