]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: explicitly queue messages for unconnected clients
authorSage Weil <sage@inktank.com>
Tue, 16 Oct 2012 20:03:53 +0000 (13:03 -0700)
committerSage Weil <sage@inktank.com>
Tue, 16 Oct 2012 20:04:43 +0000 (13:04 -0700)
commitdb976663a50ce7ab2448c42cb0c6bfd4f58d25a5
tree3810e59473a8c69c3767919db06914f65f3ef424
parent96e365be85fc6f86a518cf17f6a6765c11a179ef
mds: explicitly queue messages for unconnected clients

Previously, the messenger would queue messages for a destination that
didn't exist when you were a server; that changed a while back with the
wip-msgr merge (circa v0.52).  The result is that when we force open
client sessions and queue messages, they are dropped on the floor and the
client--when it does connect--gets confusing stuff from the MDS.

Instead, explicitly queue and send these messages.  Also, *always* send
via the Connection* instead of the inst.

Fixes: #2681
Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/MDS.cc
src/mds/Server.cc
src/mds/SessionMap.h