]> 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)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Jul 2018 14:16:15 +0000 (22:16 +0800)
the bug was introduced by commit 72883956c26 "use intrusive_ptr for
holding Connection::priv"

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

src/mds/MDSDaemon.cc

index c1266df874cf29b91b5dbefffddf5c3148146e55..c511e5dba2217f558aea03e49f58adcb78b00e9c 100644 (file)
@@ -1364,7 +1364,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});