From: Yehuda Sadeh Date: Wed, 9 Sep 2015 22:41:02 +0000 (-0700) Subject: rgw: preserve all attrs if intra-zone copy X-Git-Tag: v0.94.4~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=77cb503ba057f033825aa40d57dee42e838c67ac;p=ceph.git 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 --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index dfe4ad0b52e..345a147c7ff 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);