]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Optimized EC add_log_entry should not skip partial writes
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 16 Jul 2025 14:05:16 +0000 (15:05 +0100)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:24 +0000 (14:31 +0100)
commitf2b1ed81b2719bd99957cc112e393b84855f93a3
treed11a009a95536d1cbc837bab0d2ac7a675cb45bd
parentd9c7879183f21166a0e516e3febe649a271904cf
osd: Optimized EC add_log_entry should not skip partial writes

Undo a previous attempt at a fix that made add_log_entry skip adding partial
writes to the log if the write did not update this shard. The only case where
this code path executed is when a partial write was to an object that needs
backfilling or async recovery. For async recovery we need to keep the
log entry because it is needed to update the missing list. For backfill it
doesn't harm to keep the log entry.

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