From 19c12bbc233a118496f8ad5d640d19bb0e2c5d05 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 23 May 2016 13:27:24 +0200 Subject: [PATCH] rgw: remove unnecessary data copying in RGWPutMetadataBucket. Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_op.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 01feb876a75c..dfe09dc2ce2b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2859,8 +2859,6 @@ void RGWPutMetadataBucket::pre_exec() void RGWPutMetadataBucket::execute() { - map 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; -- 2.47.3