]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/mon: fallback to msgr v2 for unbound msgr
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2021 12:35:55 +0000 (20:35 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Jan 2021 05:07:48 +0000 (13:07 +0800)
commit264e710a374f24bfa4d8891cf39b9ae5e6075ac6
treeeb9be0fe161e9152cb8b03ee3ed788fb1123caa1
parent51c8ffff6db02ff8cdde25a46b9dc7ac66452006
crimson/mon: fallback to msgr v2 for unbound msgr

so, for instance, if we want to connect to monitor without bind to any
address, we can try to use the v2 addresses advertised in monmap or
local settings, instead of being unable to connect to mon because we are
using an `entity_addr_t::TYPE_NONE` address which is returned by
`entity_addrvec_t::front()` if the addrvec is empty.

see also AsyncMessenger::should_use_msgr2().

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