]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: add hook for RGWOp subclasses to write custom metadata to ops logs
authorCory Snyder <csnyder@iland.com>
Fri, 15 Jul 2022 01:40:22 +0000 (21:40 -0400)
committerCory Snyder <csnyder@iland.com>
Mon, 28 Nov 2022 08:22:49 +0000 (03:22 -0500)
commiteaef2c4f55fbf7b468b9046d8230da5f7d1cf336
treefc054532523259ce7a7a383dc8a23dcb99bb86bd
parent1eca59d3fca02719370f4fa8337a64dad73c3051
rgw: add hook for RGWOp subclasses to write custom metadata to ops logs

Adds a write_ops_log_entry method to the RGWOp class to allow it's
subclasses an opportunity to modify the request ops log entry.

Signed-off-by: Cory Snyder <csnyder@iland.com>
(cherry picked from commit be33b5d11e3b64356a0ef10a9795e6c33b7133dc)

Conflicts:
src/rgw/librgw.cc
src/rgw/rgw_lib.cc
src/rgw/rgw_log.cc
src/rgw/rgw_log.h
src/rgw/rgw_lua_request.cc
src/rgw/rgw_lua_request.h
src/test/rgw/test_rgw_lua.cc

Cherry-pick notes:
- Minor conflicts with due to whitespace and code movement
src/rgw/librgw.cc
src/rgw/rgw_log.cc
src/rgw/rgw_log.h
src/rgw/rgw_lua_request.cc
src/rgw/rgw_lua_request.h
src/rgw/rgw_op.h
src/rgw/rgw_process.cc
src/rgw/rgw_rest_s3.cc
src/test/rgw/test_rgw_lua.cc