From 77cb503ba057f033825aa40d57dee42e838c67ac Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 9 Sep 2015 15:41:02 -0700 Subject: [PATCH] rgw: preserve all attrs if intra-zone copy Fixes: #13015 Intra zone copy requires that all objects' attributes are preserved. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rados.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index dfe4ad0b52e60..345a147c7ff07 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3868,6 +3868,8 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx, if (source_zone.empty()) { set_copy_attrs(src_attrs, attrs, attrs_mod); + } else { + attrs = src_attrs; } ret = cb.complete(etag, mtime, set_mtime, attrs); -- 2.39.5