This is causing issues since the Client's ack of the MClientSession
is somehow not getting back to the MDS. We should make the
Client/SimpleMessenger be better-behaved about shutdown, but for
now this solution matches how we're working elsewhere in our codebase.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
// reset session
mds->send_message_client(new MClientSession(CEPH_SESSION_CLOSE), session);
mds->sessionmap.set_state(session, Session::STATE_CLOSED);
+ mds->messenger->mark_disposable(session->connection);
session->clear();
} else if (session->is_killing()) {
// destroy session, close connection