]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/{async,simple}: make learned_addr a bit smarter
authorSage Weil <sage@redhat.com>
Wed, 6 Feb 2019 12:23:16 +0000 (06:23 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:13:09 +0000 (06:13 -0600)
commit80cc838b7bdfd654d35a5409b5b54c6318d5db5f
tree484ca5b5ec3e3407ce06c8a7bc23340f1b4cccfc
parentcb0e7e0281ad7754669ea17a7c52efcd56393b21
msg/{async,simple}: make learned_addr a bit smarter

Only set type ANY if we are a pure client; otherwise, preserve the
type.  Also, only populate the addr if we have a blank ip (sometimes
we already know it from learn_addr_unknowns).

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