]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: make function parameter 'errordoc_key' passed by reference
authorBo Cai <cai.bo@h3c.com>
Wed, 3 Feb 2016 08:49:50 +0000 (16:49 +0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 10 Feb 2016 19:15:11 +0000 (11:15 -0800)
Signed-off-by: Bo Cai <cai.bo@h3c.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3website.h

index 95721937e04d8915192f5a8978ae55bdbea4eaf0..dd22378415af19b8704ec2d9d4b8646d96b63f4f 100644 (file)
@@ -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 <Error>" << dendl;
     *error_content = errordoc_key;
     // 1. Check if errordoc exists
index d6cd7d8b0810322c3ef48f10d0a87c9354527038..53449627b43d6744305b5139513d2ba76810eec6 100644 (file)
@@ -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() {}