]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PeeringState: base lease support checks on features, not require_osd_release
authorSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:49:36 +0000 (09:49 -0500)
committerSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:49:43 +0000 (09:49 -0500)
commit4629e4d79977baa08cc35edd3ad1a264d851f10c
tree34e86ad970fb6341a8badbb3fdbce9b860009a1e
parentc2adfb62c62fb742529f6eb3bf9bccc13dd4efed
osd/PeeringState: base lease support checks on features, not require_osd_release

The require_osd_release value will change at an arbitrary point in time,
midway through a peering interval.  That can leave us in a state where
we are midway through an interval and suddenly enforcing checks on leases
we don't have.

In contrast, the upacting features change at an interval boundary, which
lets us adjust our behavior for the whole interval.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PeeringState.cc
src/osd/PrimaryLogPG.cc