]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Optimized EC apply_pwlc needs to be careful about advancing last_complete
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 16 Jul 2025 13:55:49 +0000 (14:55 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Fri, 25 Jul 2025 07:43:09 +0000 (08:43 +0100)
commit0b19ed49ff76d7470bfcbd7f26ea0c7e5a2bc358
treefd9b2ddeedc9cb496481fdde231176254f198408
parent846879e6c2ec4ab5a65040981a617f4b603c379a
osd: Optimized EC apply_pwlc needs to be careful about advancing last_complete

Fix bug in apply_pwlc where the primary was advancing last_complete for a
shard doing async recorvery so that last_complete became equal to last_update
and it then thought that recovery had completed. It is only valid to advance
last_complete if it is equal to last_update.

Tidy up the logging in this function as consecutive calls to this function
often logged that it could advance on the 1st call and then that it could not
on the 2nd call. We only want one log message.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/PeeringState.cc