]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop req_state::os_auth_token as it isn't neccessary anymore.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 20 Apr 2016 13:04:40 +0000 (15:04 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 2 Jun 2016 13:37:05 +0000 (15:37 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_swift.cc

index da4d897ed84277360539525159f6bf800b72d592..022a36dbd1c0a7b3ba415ae88cf190db0672ee25 100644 (file)
@@ -172,7 +172,7 @@ void req_info::rebuild_from(req_info& src)
 
 req_state::req_state(CephContext* _cct, RGWEnv* e, RGWUserInfo* u)
   : cct(_cct), cio(NULL), op(OP_UNKNOWN), user(u), has_acl_header(false),
-    os_auth_token(NULL), info(_cct, e)
+    info(_cct, e)
 {
   enable_ops_log = e->conf->enable_ops_log;
   enable_usage_log = e->conf->enable_usage_log;
@@ -191,7 +191,6 @@ req_state::req_state(CephContext* _cct, RGWEnv* e, RGWUserInfo* u)
 
   system_request = false;
 
-  os_auth_token = NULL;
   time = ceph_clock_now(cct);
   perm_mask = 0;
   bucket_instance_shard_id = -1;
index 206a118007c689c0cc6513a40911337c1cd171a5..c4a95fc4d2b5513433128f6229d314ab94d53f43 100644 (file)
@@ -1298,8 +1298,6 @@ struct req_state {
 
   int prot_flags;
 
-  const char *os_auth_token;
-
   /* Content-Disposition override for TempURL of Swift API. */
   struct {
     string override;
index 996b247c6ad6caadd6f756ab29b9afe4c5cebd98..afa7e2d9af2a281aa00c14a5d4b038fe9fb72a0c 100644 (file)
@@ -1769,7 +1769,6 @@ int RGWHandler_REST_SWIFT::init_from_header(struct req_state *s)
     }
   }
 
-  s->os_auth_token = s->info.env->get("HTTP_X_AUTH_TOKEN");
   next_tok(req, first, '/');
 
   dout(10) << "ver=" << ver << " first=" << first << " req=" << req << dendl;