]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix getter function names in RGWEnv 18377/head
authorJos Collin <jcollin@redhat.com>
Wed, 18 Oct 2017 14:49:36 +0000 (20:19 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 18 Oct 2017 14:58:34 +0000 (20:28 +0530)
Fixed the getter function names as per the review comment in
https://github.com/ceph/ceph/pull/17432

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h

index 43a6a23635476400223f5055d3a7ed5e6d921a14..49d675876bd1d071f1ff1cc420f83360604f47ef 100644 (file)
@@ -273,9 +273,9 @@ req_state::req_state(CephContext* _cct, RGWEnv* e, RGWUserInfo* u)
   : cct(_cct), cio(NULL), op(OP_UNKNOWN), user(u), has_acl_header(false),
     info(_cct, e)
 {
-  enable_ops_log = e->rgw_conf_get_enable_ops_log();
-  enable_usage_log = e->rgw_conf_get_enable_usage_log();
-  defer_to_bucket_acls = e->rgw_conf_get_defer_to_bucket_acls();
+  enable_ops_log = e->get_enable_ops_log();
+  enable_usage_log = e->get_enable_usage_log();
+  defer_to_bucket_acls = e->get_defer_to_bucket_acls();
   content_started = false;
   format = 0;
   formatter = NULL;
index ca4361c8c38ec12055d41f01f325712d5cc605b3..4c1583fc1a3de297c3fd578ad8fc4e3337265716 100644 (file)
@@ -412,15 +412,15 @@ public:
   bool exists_prefix(const char *prefix) const;
   void remove(const char *name);
   const std::map<string, string, ltstr_nocase>& get_map() const { return env_map; }
-  int rgw_conf_get_enable_ops_log() const {
+  int get_enable_ops_log() const {
     return conf.enable_ops_log;
   }
 
-  int rgw_conf_get_enable_usage_log() const {
+  int get_enable_usage_log() const {
     return conf.enable_usage_log;
   }
 
-  int rgw_conf_get_defer_to_bucket_acls() const {
+  int get_defer_to_bucket_acls() const {
     return conf.defer_to_bucket_acls;
   }
 };