]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: take over existing Connection on Pipe replacement
authorSage Weil <sage@inktank.com>
Tue, 10 Jul 2012 20:18:27 +0000 (13:18 -0700)
committerSage Weil <sage@inktank.com>
Tue, 10 Jul 2012 20:25:31 +0000 (13:25 -0700)
commit35b13266923f8095650f45562d66372e618c8824
tree1196271fd38797dfc43aa7afc1b5533da25a4612
parentf7d4e39740fd2afe82ac40c711bd3fe7a282e816
msgr: take over existing Connection on Pipe replacement

If a new pipe/socket is taking over an existing session, it should also
take over the Connection* associated with the existing session.  Because
we cannot clear existing->connection_state, we just take another reference.

Clean up the comments a bit while we're here.

This affects MDS<->client sessions when reconnecting after a socket fault.
It probably also affects intra-cluster (osd/osd, mds/mds, mon/mon)
sessions as well, but I did not confirm that.

Backport: argonaut
Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/SimpleMessenger.cc