]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix lifecycle transition of encrypted multipart objects
authorMarcus Watts <mwatts@redhat.com>
Sat, 25 May 2024 03:45:14 +0000 (23:45 -0400)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 19 Nov 2025 19:00:46 +0000 (20:00 +0100)
commit77b86722300f2df7c1bf418c2f730b888d77f86a
treed7e2acecae360a8ae5f4d9d6d2101d04b78032ab
parenta5f45165a6daa6b1f738e2771a4d7001632fb744
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>
src/rgw/driver/rados/rgw_rados.cc