]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/ProtocolV2: advertise ourselves as a v2 addr when using v2 protocol
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 22:38:01 +0000 (16:38 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
commit4582de3ef3dea9b7315212608012c47c825ac81b
treee36633d21d365cf122809d2694ec6bcf07352c88
parent69408b57e08f130259dbdfa1d056898f8931ee1a
msg/async/ProtocolV2: advertise ourselves as a v2 addr when using v2 protocol

We may have learned our address from a v1 connection, so myaddrs() is
a v1 addr like [v1:1.2.3.4:123/4392].  When we connect to someone using
msgr2, we should advertise ourselves as a v2 address, or else we risk
confusing everyone because we are a "v1" endpoint using the v2 protocol.

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