From: Bo Cai Date: Wed, 3 Feb 2016 08:49:50 +0000 (+0800) Subject: rgw: make function parameter 'errordoc_key' passed by reference X-Git-Tag: v10.1.0~412^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fce9b274300f9461d2e54e0351141216412d8e30;p=ceph.git rgw: make function parameter 'errordoc_key' passed by reference Signed-off-by: Bo Cai --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 95721937e04..dd22378415a 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -2913,7 +2913,7 @@ RGWOp *RGWHandler_ObjStore_S3Website::op_head() return get_obj_op(false); } -int RGWHandler_ObjStore_S3Website::get_errordoc(const string errordoc_key, string *error_content) { +int RGWHandler_ObjStore_S3Website::get_errordoc(const string& errordoc_key, string *error_content) { ldout(s->cct, 20) << "TODO Serve Custom error page here if bucket has " << dendl; *error_content = errordoc_key; // 1. Check if errordoc exists diff --git a/src/rgw/rgw_rest_s3website.h b/src/rgw/rgw_rest_s3website.h index d6cd7d8b081..53449627b43 100644 --- a/src/rgw/rgw_rest_s3website.h +++ b/src/rgw/rgw_rest_s3website.h @@ -32,7 +32,7 @@ protected: RGWOp *op_copy() { return NULL; } RGWOp *op_options() { return NULL; } - int get_errordoc(const string errordoc_key, string *error_content); + int get_errordoc(const string& errordoc_key, string *error_content); public: RGWHandler_ObjStore_S3Website() : RGWHandler_ObjStore_S3() {} virtual ~RGWHandler_ObjStore_S3Website() {}