]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop aws4_auth_needs_complete from req_state.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 24 Apr 2017 10:45:16 +0000 (12:45 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 7 Jun 2017 10:43:18 +0000 (12:43 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_metadata.cc

index 896a6025d50189c51ab5b4e70866ffc99fdad1bf..36906c16868784842cccb5492f9849520f3cb354 100644 (file)
@@ -823,7 +823,6 @@ size_t AWSv4Completer::recv_body(char* const buf, const size_t max)
 void AWSv4Completer::modify_request_state(req_state* const s_rw)
 {
   /* TODO(rzarzynski): switch to the dedicated filter over RestfulClient. */
-  s_rw->aws4_auth_needs_complete = aws4_auth_needs_complete;
   s_rw->aws4_auth_streaming_mode = aws4_auth_streaming_mode;
 
   s_rw->aws4_auth = std::unique_ptr<rgw_aws4_auth>(new rgw_aws4_auth);
index 6052cfd538847de47c36dc91d0d8de109a4cf29e..a8b25b582df03a9b8f2bf657f76c1cf2af11f7e7 100644 (file)
@@ -264,7 +264,6 @@ req_state::req_state(CephContext* _cct, RGWEnv* e, RGWUserInfo* u)
   bucket_acl = NULL;
   object_acl = NULL;
   expect_cont = false;
-  aws4_auth_needs_complete = false;
   aws4_auth_streaming_mode = false;
 
   header_ended = false;
index c36f377bd51b3a48a823eed31fce439aae8b0c83..5ad041857efb08e7483172f06b7a7a6c4691953c 100644 (file)
@@ -1806,7 +1806,6 @@ struct req_state {
   bool system_request;
 
   /* aws4 auth support */
-  bool aws4_auth_needs_complete;
   bool aws4_auth_streaming_mode;
   unique_ptr<rgw_aws4_auth> aws4_auth;
 
index 272e304f17ebf086dca7e878389d50821e726110..099a206e50f6f614becf603c655dcd75f4c2d9aa 100644 (file)
@@ -162,11 +162,9 @@ void RGWOp_Metadata_Put::execute() {
     return;
   }
 
-  if (s->aws4_auth_needs_complete) {
-    http_ret = do_aws4_auth_completion();
-    if (http_ret < 0) {
-      return;
-    }
+  http_ret = do_aws4_auth_completion();
+  if (http_ret < 0) {
+    return;
   }
   
   frame_metadata_key(s, metadata_key);