]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add reference when setting Connection::priv to existing session
authorYan, Zheng <zyan@redhat.com>
Mon, 4 Jun 2018 05:40:00 +0000 (13:40 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 4 Jun 2018 05:41:30 +0000 (13:41 +0800)
the bug was introduced by commit 72883956c26 "use intrusive_ptr for
holding Connection::priv"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSDaemon.cc

index bf3824efc7b3d4d3abdefd6fe82a9b8a61af52b3..757959a4094c742f289ae5cf67590b5d6e24586b 100644 (file)
@@ -1339,7 +1339,7 @@ bool MDSDaemon::ms_verify_authorizer(Connection *con, int peer_type,
     } else {
       dout(10) << " existing session " << s << " for " << s->info.inst << " existing con " << s->connection
               << ", new/authorizing con " << con << dendl;
-      con->set_priv(RefCountedPtr{s, false});
+      con->set_priv(RefCountedPtr{s});