]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix Truncates in Optimised EC
authorAlex Ainscow <aainscow@uk.ibm.com>
Wed, 16 Apr 2025 09:41:48 +0000 (10:41 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
commit9d97bec9c80eb28ce912bfb900d1b4c7f86f5d86
tree3ef43b380f0e575d0304f45b443e357f572540e8
parent89e5d5c60efedd253bf70cfd2fdb59255303f972
osd: Fix Truncates in Optimised EC

The previous truncate code attempted to perform a non-aligned truncate by
creating a zero buffer at the end of the object, which was written.

The new code initially truncates to the exact size of the user object before
growing the object to the required 4k alignment. This simpler arrangement
also simplifies the rollback.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit d17f06b5fcb2fc749c4d0cbae9beb963bd06c145)
src/osd/ECTransaction.cc