]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix off-by-one error in shard_extent_map.
authorAlex Ainscow <aainscow@uk.ibm.com>
Thu, 1 May 2025 09:09:15 +0000 (10:09 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:25 +0000 (15:47 +0000)
commit90627f4ec002536c29b6551a07186df83689da1e
tree5f18bcfd6e645c1859a4ead799afd6602aa8e7ac
parent2d9c72fabe19470ff858b680e8d5d6e6389a37bc
osd: Fix off-by-one error in shard_extent_map.

Inserting the first parity buffer was causing the ro-range within the SEM to be incorrectly calculated.
Simple fix and I have added some unit tests to defend this error in the future.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit 2a569d8680ff64287efea5d4b1790b396aae86cc)
src/osd/ECUtil.cc
src/test/osd/TestECUtil.cc