]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: preserve all attrs if intra-zone copy 6039/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 9 Sep 2015 22:41:02 +0000 (15:41 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 22 Sep 2015 20:03:36 +0000 (13:03 -0700)
Fixes: #13015
Intra zone copy requires that all objects' attributes are preserved.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index dfe4ad0b52e60314d2e1f4cc3a6480c202af2d70..345a147c7ff07a3f00f0afdfdc593a7181c7e7ba 100644 (file)
@@ -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);