]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix opslog operation field as per Amazon s3 32834/head
authorJiaying Ren <renjiaying@cmss.chinamobile.com>
Tue, 24 Sep 2019 07:19:23 +0000 (15:19 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:04:03 +0000 (17:04 +0100)
According to Amazon s3[1], current Operation field are using
http method, which should be operation name.

[1] http://docs.aws.amazon.com/AmazonS3/latest/dev/LogFormat.html

Fixes: http://tracker.ceph.com/issues/20978
Signed-off-by: Jiaying Ren <renjiaying@cmss.chinamobile.com>
(cherry picked from commit 7949f81b71b718e1c17ade5ca0393979b22260bc)

src/rgw/rgw_log.cc

index 74b192b91ca938c161bbbc43afe63fc6c7505e15..f6722f1b2260119b867ac312104ef4968d463b18 100644 (file)
@@ -391,7 +391,7 @@ int rgw_log_op(RGWRados *store, RGWREST* const rest, struct req_state *s,
 
   entry.uri = std::move(uri);
 
-  set_param_str(s, "REQUEST_METHOD", entry.op);
+  entry.op = op_name;
 
   /* custom header logging */
   if (rest) {