]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: PeeringState: respect stretch peering constraints for async recovery
authorGreg Farnum <gfarnum@redhat.com>
Thu, 11 Mar 2021 07:40:52 +0000 (07:40 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 12 Mar 2021 20:58:52 +0000 (20:58 +0000)
commitc5f3cca9fe30148a5630bb42588d488817df05af
tree1fb3b35e1ca9e3ad501d22bff579101b5635e85e
parente19639af364d5a9762898e4aa438ad5930f0d42c
osd: PeeringState: respect stretch peering constraints for async recovery

Happily this is pretty simple: we just need to check that the resulting
wanted set can peer, which we have a function for. Run it before actually
swapping the want and candidate_want sets.

If we're not in stretch mode, this is a cheap function call that
will always return true, so it's equivalent to what we already have for them.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osd/PeeringState.cc