summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_acl_s3.h
diff options
context:
space:
mode:
authorAbhishek Lekshmanan <abhishek@suse.com>2017-06-14 14:27:05 +0200
committerAbhishek Lekshmanan <abhishek@suse.com>2017-06-14 14:27:05 +0200
commit1afcc3866ccaeaf35e154cda2df748d1799a9c92 (patch)
tree708fd1a13f08d16a54dcddf47d0c6550f3bef237 /src/rgw/rgw_acl_s3.h
parentMerge pull request #14885 from rzarzynski/wip-rgw-auth-rework-cont-3-awsv4 (diff)
downloadceph-1afcc3866ccaeaf35e154cda2df748d1799a9c92.tar.xz
ceph-1afcc3866ccaeaf35e154cda2df748d1799a9c92.zip
rgw: make RGWEnv return a const ref. to its map
We already have a public method `set` for setting values in the RGW env map, making the map as a read only. In addition: - Added const to other methods in `RGWEnv` which are getters - `req_info::init_meta` also reused the same `iter` name for an internal find, changed the var name - `add_grants_headers` now accepts an RGWEnv instead of the map - use range based for loops wherever the code was changed - req_info holds a ptr to a const RGWEnv, since we seem to only read the values from it Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Diffstat (limited to 'src/rgw/rgw_acl_s3.h')
-rw-r--r--src/rgw/rgw_acl_s3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_acl_s3.h b/src/rgw/rgw_acl_s3.h
index 6991a0b8363..149db40e70b 100644
--- a/src/rgw/rgw_acl_s3.h
+++ b/src/rgw/rgw_acl_s3.h
@@ -92,7 +92,7 @@ public:
owner = _owner;
return ret;
}
- int create_from_headers(RGWRados *store, RGWEnv *env, ACLOwner& _owner);
+ int create_from_headers(RGWRados *store, const RGWEnv *env, ACLOwner& _owner);
};
/**