From: Jiaying Ren Date: Tue, 24 Sep 2019 07:19:23 +0000 (+0800) Subject: rgw: fix opslog operation field as per Amazon s3 X-Git-Tag: v14.2.8~78^2~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3abd3aed2940fcc3b4b94100b8b9d54ce36b8ffa;p=ceph.git rgw: fix opslog operation field as per Amazon s3 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 (cherry picked from commit 7949f81b71b718e1c17ade5ca0393979b22260bc) --- diff --git a/src/rgw/rgw_log.cc b/src/rgw/rgw_log.cc index 74b192b91ca9..f6722f1b2260 100644 --- a/src/rgw/rgw_log.cc +++ b/src/rgw/rgw_log.cc @@ -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) {