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: v15.1.0~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7949f81b71b718e1c17ade5ca0393979b22260bc;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 --- diff --git a/src/rgw/rgw_log.cc b/src/rgw/rgw_log.cc index bdc6d55be4e..66355320380 100644 --- a/src/rgw/rgw_log.cc +++ b/src/rgw/rgw_log.cc @@ -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) {