]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set dest placement rule when copying object
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 10 Oct 2018 21:10:19 +0000 (14:10 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 4 Jan 2019 03:00:21 +0000 (19:00 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_op.cc

index 30a78542d0f38ea6d59b6f13b1c1228535297632..16829a4cc79a951b1ad6664b65f1ad1f555a9ef2 100644 (file)
@@ -4704,6 +4704,8 @@ void RGWCopyObj::execute()
     return;
   }
 
+  rgw_placement_rule& dest_placement = s->info.storage_class;
+
   op_ret = store->copy_obj(obj_ctx,
                           s->user->user_id,
                           &s->info,
@@ -4712,7 +4714,7 @@ void RGWCopyObj::execute()
                           src_obj,
                           dest_bucket_info,
                           src_bucket_info,
-                           nullptr, /* dest placement rule */
+                           &dest_placement,
                           &src_mtime,
                           &mtime,
                           mod_ptr,