]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: EC Optimizations proc_master_log boundary case bug fixes
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 17 Jul 2025 18:17:27 +0000 (19:17 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commitb9ecda4c9da4868ca441d4316053215a83e39ef5
tree88f7a80fdc2a145a9dd745ef1245ffe5d1c950b9
parent07d8434b749577b3aa2dd39d68cb2cddcdc3570e
osd: EC Optimizations proc_master_log boundary case bug fixes

Fix a couple of bugs in proc_master_log for optimized EC
pools dealing with boundary conditions such as an empty
log and merging two logs that diverge from the very first
entry.

Refactor the code to handle the boundary conditions and
neaten up the code.

Predicate the code block with if (pool.info.allows_ecoptimizations())
to make it clear this code path is only for optimized EC pools.

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