]> 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)
committerVenky Shankar <vshankar@redhat.com>
Tue, 22 Oct 2019 10:15:46 +0000 (06:15 -0400)
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 dce45a6feeb21a353b1c3381c3a9e5ece8bceabb..e4ad62465808691ab3aae759219b68caa26492a5 100644 (file)
@@ -1374,7 +1374,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});