]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unnecessary data copying in RGWPutMetadataBucket. 9263/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 23 May 2016 11:27:24 +0000 (13:27 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 23 May 2016 11:27:24 +0000 (13:27 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_op.cc

index 01feb876a75c4e28b67e403fd7de4514817eb155..dfe09dc2ce2b9102ed9d0f99b9283e75f9c91a35 100644 (file)
@@ -2859,8 +2859,6 @@ void RGWPutMetadataBucket::pre_exec()
 
 void RGWPutMetadataBucket::execute()
 {
-  map<string, buffer::list> orig_attrs;
-
   op_ret = get_params();
   if (op_ret < 0) {
     return;
@@ -2891,8 +2889,7 @@ void RGWPutMetadataBucket::execute()
 
   /* It's supposed that following functions WILL NOT change any special
    * attributes (like RGW_ATTR_ACL) if they are already present in attrs. */
-  orig_attrs = s->bucket_attrs; /* XXX map copy */
-  prepare_add_del_attrs(orig_attrs, rmattr_names, attrs);
+  prepare_add_del_attrs(s->bucket_attrs, rmattr_names, attrs);
   populate_with_generic_attrs(s, attrs);
 
   s->bucket_info.swift_ver_location = swift_ver_location;