fixes: http://tracker.ceph.com/issues/40588
This bug is from backporting "https://github.com/ceph/ceph/pull/27256"
On version mimic and luminous, the type of msg determines msg
has to be destroyed explictly.
Signed-off-by: Shen Hang <harryshen18@gmail.com>
dout(7) << "handle_client_reconnect " << m->get_source() << dendl;
client_t from = m->get_source().num();
Session *session = mds->get_session(m);
- if (!session)
+ if (!session) {
+ m->put();
return;
+ }
if (!mds->is_reconnect() && mds->get_want_state() == CEPH_MDS_STATE_RECONNECT) {
dout(10) << " we're almost in reconnect state (mdsmap delivery race?); waiting" << dendl;