]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 1 Jul 2025 12:03:30 +0000 (13:03 +0100)
commitd17f06b5fcb2fc749c4d0cbae9beb963bd06c145
tree8468d3313efd8bfeba5737d77629063c3587aca9
parentc5f67d3771384e7a780ed6488019fca2509e31c2
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>
src/osd/ECTransaction.cc