mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
Merge pull request #55486 from jzhu116-bloomberg/wip-64340
rgw: do not copy olh attributes in versioning suspended bucket Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
3366f5fd5e
@ -4680,6 +4680,12 @@ int RGWRados::copy_obj(RGWObjectCtx& obj_ctx,
|
||||
if (lh != attrs.end())
|
||||
src_attrs[RGW_ATTR_OBJECT_LEGAL_HOLD] = lh->second;
|
||||
|
||||
if (dest_bucket_info.flags & BUCKET_VERSIONS_SUSPENDED) {
|
||||
src_attrs.erase(RGW_ATTR_OLH_ID_TAG);
|
||||
src_attrs.erase(RGW_ATTR_OLH_INFO);
|
||||
src_attrs.erase(RGW_ATTR_OLH_VER);
|
||||
}
|
||||
|
||||
set_copy_attrs(src_attrs, attrs, attrs_mod);
|
||||
attrs.erase(RGW_ATTR_ID_TAG);
|
||||
attrs.erase(RGW_ATTR_PG_VER);
|
||||
|
Loading…
Reference in New Issue
Block a user