From: Patrick Donnelly Date: Fri, 8 Feb 2019 19:16:01 +0000 (-0800) Subject: mds: remove wrong puts on Message X-Git-Tag: v14.1.0~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65c5a2f43f2d6bb3b12f36ec688193268fb36453;p=ceph.git mds: remove wrong puts on Message Messages ref counts in the MDS/client are handled by the smart pointers. Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 470b7e96a14..67a1eebc70c 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -383,7 +383,6 @@ void Server::finish_reclaim_session(Session *session, const MClientReclaimReply: assert(mds->mds_lock.is_locked_by_me()); Session *session = mds->sessionmap.get_session(entity_name_t::CLIENT(session_id)); if (!session) { - reply->put(); return; } auto epoch = mds->objecter->with_osdmap([](const OSDMap &map){ return map.get_epoch(); }); @@ -417,7 +416,6 @@ void Server::handle_client_reclaim(const MClientReclaim::const_ref &m) if (!session) { dout(0) << " ignoring sessionless msg " << *m << dendl; - m->put(); return; } @@ -431,7 +429,6 @@ void Server::handle_client_reclaim(const MClientReclaim::const_ref &m) } else { reclaim_session(session, m); } - m->put(); } void Server::handle_client_session(const MClientSession::const_ref &m)