]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix lifecycle transition of encrypted multipart objects 68826/head
authorMarcus Watts <mwatts@redhat.com>
Sat, 25 May 2024 03:45:14 +0000 (23:45 -0400)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Fri, 8 May 2026 16:11:40 +0000 (11:11 -0500)
commitec11f6284d0810708ff65d5c5b8dc29294c0b672
tree33edca909ebe4b95db7e946abce4a045a9819146
parentab131a6255c9f4e948747c205dc0743ac193fe93
rgw: 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>
(cherry picked from commit 77b86722300f2df7c1bf418c2f730b888d77f86a)
src/rgw/driver/rados/rgw_rados.cc