]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-mon: make membership check with public_addr more robust
authorSage Weil <sage@redhat.com>
Tue, 8 Jan 2019 19:38:53 +0000 (13:38 -0600)
committerSage Weil <sage@redhat.com>
Fri, 11 Jan 2019 01:00:39 +0000 (19:00 -0600)
commitcee2cf62abc3dc3f2d606ed28a5a2c94f6248ba8
treef0f49114d5cbb11e436ca2a6177a38d8646e1b32
parent5b020479ba889c3fcd38e337ad02377ae3dd2792
ceph-mon: make membership check with public_addr more robust

If the public_addr has no port, we will check v1 and v2 addresses.
MonMap::contains() checks for *any* overlap/match, so we should find
ourselves.

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