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: v14.0.1~1200^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4478e353e35d1a6b217e075bbc1c551c1c009e29;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" --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index bf3824efc7b3..757959a4094c 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -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});