]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 1 Jul 2025 12:03:30 +0000 (13:03 +0100)
commit2a569d8680ff64287efea5d4b1790b396aae86cc
treec92b9b6480ab7ee3b70f90b0e71e751ab2d5b27e
parent29039e9441e4c05c5b59ca1a1f1064fed44f4078
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>
src/osd/ECUtil.cc
src/test/osd/TestECUtil.cc