]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix opslog operation field as per Amazon s3 30539/head
authorJiaying Ren <renjiaying@cmss.chinamobile.com>
Tue, 24 Sep 2019 07:19:23 +0000 (15:19 +0800)
committerJiaying Ren <renjiaying@cmss.chinamobile.com>
Tue, 24 Sep 2019 07:21:54 +0000 (15:21 +0800)
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>
src/rgw/rgw_log.cc

index bdc6d55be4eb48fe0961cac2956d9431ebb634b0..66355320380e6b05c2dbe7bd6ba2b624e8b01c96 100644 (file)
@@ -392,7 +392,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) {