]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: EC optimizations correct pwlc after PG split
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 5 Jun 2025 10:17:06 +0000 (11:17 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 1 Jul 2025 12:03:29 +0000 (13:03 +0100)
commit6c04e4cf2b81c768eb313c3d0e6ac37d8e69b150
tree1752196af25e722d3be487a6bdeac5452c469227
parent20e883fedaf19293e939c4cac44de196bd6c9c19
osd: EC optimizations correct pwlc after PG split

When a PG splits the log entries are divided between the two PGs,
this can result in PWLC refering to log entries in the other PG.
Rollback PWLC after the split so it is not further advanced that
the most recently completed log entry.

Non-primary shards can be missing log entries and may rollback
PWLC too far because of this, however this does not matter
because a split occurs at the start of a peering cycle and these
shards will be updated with the correct PWLC from the primary
shard later in the peering cycle when they are activated.

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