]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
Fix lifecycle transition of encrypted multipart objects.
authorMarcus Watts <mwatts@redhat.com>
Sat, 25 May 2024 03:45:14 +0000 (23:45 -0400)
committerMarcus Watts <mwatts@redhat.com>
Wed, 24 Sep 2025 14:56:25 +0000 (10:56 -0400)
commita822965e86cf7977b5bedda25ad9f34f25b3ab0e
treea73ff7a43df0c2ea3cbad768abb1c83d4005ea09
parent4f7fc7b8d64fa81c5ec26fb87e572dfbf234bd82
Fix lifecycle transition of encrypted multipart objects.

Lifecycle transtion can copy objects to a different storage tier.
When this happens, since the object is repacked, the original
manifest is invalidated.  It is necessary to store a special
"parts_len" attribute to fix this.  There was code in PutObj
to handle this, but that was only used for multisite replication,
it is not used by the lifecycle transisiton code.  This fix
adds similar logic to the lifecycle transition code path to make the
same thing happen.

Fixes: https://tracker.ceph.com/issues/23264
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/driver/rados/rgw_rados.cc