]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/MDSRank: improve is_stale_message to handle addrvecs
authorSage Weil <sage@redhat.com>
Fri, 14 Dec 2018 21:53:30 +0000 (15:53 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
commit9e63e6346844fc258c0e6a5265fc09ae80dd5353
tree838b17e24657a78e67d45a4a8e5460146060ce7c
parent76ccf140ed06ed1bd562168774dc06e29082f458
mds/MDSRank: improve is_stale_message to handle addrvecs

If we get a connection on a loopback from ourselves, get_source_addrs()
will have everything we bound to, but the mdsmap may only have the v1
address.  Avoid the addrvec comparison by instead comparing the
ConnectionRefs.

NOTE: this implementation is a stopgap.  We should really maintain a map
of ConnectionRefs for the current up set and compare the ConnectionRefs
directly instead of comparing addr(vecs).

Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSRank.cc