]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Optimized EC missing call to apply_pwlc after updating pwlc
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 1 Aug 2025 08:56:23 +0000 (09:56 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commit7e4a694c7fa688a6c32149526a45c5ef610df472
tree563343b323dd1813026d654ad3d71ff36acaf71f
parent286579f5995e85cf474dc9d53c501dda1c0f0f2b
osd: Optimized EC missing call to apply_pwlc after updating pwlc

update_peer_info was updating pwlc with a newer version received
from another shard, but failed to update the peer_info's to
reflect the new pwlc by calling apply_pwlc.

Scenario was primary receiving an update from shard X which had
newer information about shard Y. The code was calling apply_pwlc
for shard X but not for shard Y.

The fix simplifies the logic in update_peer_info - if we are
the primary update all peer_info's that have pwlc. If we
are a non-primary and there is pwlc then update info.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit d19f3a3bcbb848e530e4d31cbfe195973fa9a144)
src/osd/PeeringState.cc