From ab1eecb2302a9671a73e67c8e5ec27a33049da4b Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 4 Jun 2018 13:40:00 +0800 Subject: [PATCH] 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) --- src/mds/MDSDaemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index dce45a6feeb21..e4ad624658086 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}); -- 2.39.5