]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerAlex Ainscow <aainscow@uk.ibm.com>
Sun, 7 Sep 2025 23:10:41 +0000 (00:10 +0100)
commitb7221e6474ad547a1e1b7fde9e3225e8cdc5f242
treedd4733657ea2cc0bf1a4c6e247317e3cf63a6a6c
parent4c26de4003664581057720a22a9faacbe7324707
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