]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/Pipe: make STANDBY behavior optional
authorSage Weil <sage@inktank.com>
Wed, 25 Jul 2012 00:12:02 +0000 (17:12 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Jul 2012 17:44:09 +0000 (10:44 -0700)
commita879425b379938d4a624a0efda99412ecf616c6e
tree148d628cddd71cab6e0248c8ff6c78efee1ff965
parent7cf1f1fb7fa9519cbc3b2934d46b428c08dea019
msg/Pipe: make STANDBY behavior optional

In particular, lossless_peers should use STANDBY, but lossless_clients
should reconnect immediately since they are already doing their own session
management.

Specifically, this fixes the problem where the Client tries to open a
connection to the MDS and faults after delivering its OPEN_SESSION message
but before it gets the reply: the session isn't open yet, so it isn't
pinging.  It could, but it is simpler and faster to make the msgr layer
keep the connection open instead of waiting for a periodic keepalive.

Fixes: #2824
Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Messenger.h
src/msg/Pipe.cc