]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reset connection's priv when marking down connection 20148/head
authorYan, Zheng <zyan@redhat.com>
Mon, 29 Jan 2018 02:00:54 +0000 (10:00 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 29 Jan 2018 02:27:24 +0000 (10:27 +0800)
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>
src/mds/Server.cc

index 1446e65940450e0adb3e2d5b6c02ade8de716b72..909f564c1b03f72d92aa0fe04e7e7837adbc474b 100644 (file)
@@ -559,7 +559,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 {