From: Yan, Zheng Date: Mon, 4 Jun 2018 05:40:00 +0000 (+0800) Subject: mds: add reference when setting Connection::priv to existing session X-Git-Tag: v12.2.13~85^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab1eecb2302a9671a73e67c8e5ec27a33049da4b;p=ceph.git mds: add reference when setting Connection::priv to existing session the bug was introduced by commit 72883956c26 "use intrusive_ptr for holding Connection::priv" Signed-off-by: "Yan, Zheng" (cherry picked from commit 4478e353e35d1a6b217e075bbc1c551c1c009e29) --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index dce45a6feeb..e4ad6246580 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -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});