]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: always send non-empty addrvec for self
authorSage Weil <sage@redhat.com>
Fri, 25 Jan 2019 20:14:55 +0000 (14:14 -0600)
committerSage Weil <sage@redhat.com>
Fri, 25 Jan 2019 20:17:34 +0000 (14:17 -0600)
commit2ca61bb4609304b3bbf8e7a141ccb56d1fbe41b9
tree65ebb11eecfbedcffabd9aac17743bdc4752f849
parent5acf7ec1ffc65db6a2e4a17cfa738e3d98dbb6a3
msg/async/ProtocolV2: always send non-empty addrvec for self

If we don't know our address yet, send the peer a 0.0.0.0 or :: address with an empty
port and a populated nonce.  That way the peer can infer our final addr the same way
we do from learned_addr.

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