Messages ref counts in the MDS/client are handled by the smart pointers.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
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(); });
if (!session) {
dout(0) << " ignoring sessionless msg " << *m << dendl;
- m->put();
return;
}
} else {
reclaim_session(session, m);
}
- m->put();
}
void Server::handle_client_session(const MClientSession::const_ref &m)