mirror of
https://github.com/ceph/ceph
synced 2025-02-28 21:42:27 +00:00
rgw: do not copy olh attributes in versioning suspended bucket
Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
This commit is contained in:
parent
608a5b2b92
commit
c7ad4c1e70
@ -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