]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: do not reset need_addr before learning it 36268/head
authorKefu Chai <kchai@redhat.com>
Thu, 23 Jul 2020 16:09:08 +0000 (00:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 24 Jul 2020 10:15:12 +0000 (18:15 +0800)
commitcde27b2a1eb81fc45d211bac42ac1b4983da8ebe
tree8cec3c4ac00a96c7ce402183cf4a6cf42d136db5
parente7c8e7fd2ae9dbf59155c56920669d6fa09065d3
crimson/net: do not reset need_addr before learning it

because we don't bind both v1 and v2 addresses, when monitor returns a
v1 peer address, as the client side, crimson-osd just drops the
connection. but this failed attempt to learn the myaddr resets
`need_addr`. and this prevents crimson-osd from learning the v2 address
returned by monitor.

in this change, we reset need_addr only after it is learned from the
peer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/SocketMessenger.cc