]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async: do not connect from server
authorSage Weil <sage@redhat.com>
Fri, 25 Jan 2019 21:21:45 +0000 (15:21 -0600)
committerSage Weil <sage@redhat.com>
Sat, 26 Jan 2019 17:44:55 +0000 (11:44 -0600)
commit985ec03cf9cd09436693fbf5dbd61be118f023a7
tree86846493b0621f6dfe17802b0f2a2e5436c5a574
parent98a9a5e5386294ade5543da076892975d079afe9
msg/async: do not connect from server

We could have a fault on a server-side of a non-lossy connectoin where
there is a fault and we have outgoing data queued.  Since we are a server,
we cannot connect; we should just go into standby and wait for the other
end to reconnect, or for someone to mark us down.

This fixes a failure reproduced by Messenger/MessengerTest.SyntheticInjectTest/0
where it would assert(!policy.server) in the connect code.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc