]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonMap: handle ambiguous mon addrs by trying both legacy and msgr
authorSage Weil <sage@redhat.com>
Fri, 13 Jul 2018 14:30:21 +0000 (09:30 -0500)
committerSage Weil <sage@redhat.com>
Fri, 21 Dec 2018 21:31:32 +0000 (15:31 -0600)
commitab896ec793fb7143c2dc7574938bd09d372188e5
treec59872f023326c26aebfba9e261e0230292b7150
parent491b3e45c4eb582746d8f0bcff93edda70c70aaa
mon/MonMap: handle ambiguous mon addrs by trying both legacy and msgr

If we are given a mon addr (a raw IP or hostname) we don't know whether
it is a legacy or msgr2 entity_addr_t.  Either infer from the port number
or probe both protocol types.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonMap.cc
src/mon/MonMap.h