]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Optimized EC don't try to trim past crt
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 1 Aug 2025 09:22:47 +0000 (10:22 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commitd85ea954e9ebd8ea7135bc7eecaac41c66e4a7fc
tree8ade95cc91e0d4d1ed4225790dfe4fddb87a4372
parent7e4a694c7fa688a6c32149526a45c5ef610df472
osd: Optimized EC don't try to trim past crt

If there is an exceptionally long sequence of partial writes
that did not update a shard that is followed by a full write
then it is possible that the log trim point is ahead of the
previous write to the shard (and hence crt). We cannot trim
beyond crt. In this scenario its fine to limit the trim to crt
because the shard doesn't have any of the log entries for the
partial writes so there is nothing more to trim.

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