]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove wrong puts on Message 26486/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 8 Feb 2019 19:16:01 +0000 (11:16 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 18 Feb 2019 16:28:59 +0000 (08:28 -0800)
Messages ref counts in the MDS/client are handled by the smart pointers.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Server.cc

index 470b7e96a14722da5cdc48e02ddca73abc3efcd9..67a1eebc70c58a8830b185ea1a972c871cd14fb5 100644 (file)
@@ -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)