]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: make RGWEnv return a const ref. to its map 15269/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 14 Jun 2017 12:27:05 +0000 (14:27 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 14 Jun 2017 12:27:05 +0000 (14:27 +0200)
commit1afcc3866ccaeaf35e154cda2df748d1799a9c92
tree708fd1a13f08d16a54dcddf47d0c6550f3bef237
parent2b4b71821097d1317bfdbf14afd777ace63bf9dc
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>
src/rgw/rgw_acl_s3.cc
src/rgw/rgw_acl_s3.h
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_crypt.cc
src/rgw/rgw_env.cc
src/rgw/rgw_rest_client.cc
src/rgw/rgw_rest_conn.cc
src/rgw/rgw_rest_swift.cc