]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Optimised EC should avoid decodes off the end of objects.
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 6 Jun 2025 11:09:04 +0000 (12:09 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:25 +0000 (15:47 +0000)
commit167fb1ba2911e6cb7377814a197cb8e61401c546
treed50bbd43985732b5bdc709b0aa48be04c7626f6e
parent805dee9de19d60a02a8c3c7e0dfd9c71d6e6ad4a
osd: Optimised EC should avoid decodes off the end of objects.

This was a particular edge case whereby the need to do an encode and a decode as part of recovery
was causing EC to attempt to do a decode off the end of the shard, despite this being
unnecessary.

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