diff options
Diffstat (limited to 'src/rgw/rgw_process.cc')
-rw-r--r-- | src/rgw/rgw_process.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 8be7be79069..9ad599b3252 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -21,6 +21,7 @@ #include "rgw_lua_request.h" #include "rgw_tracer.h" #include "rgw_ratelimit.h" +#include "rgw_bucket_logging.h" #include "services/svc_zone_utils.h" @@ -444,6 +445,20 @@ done: rgw_log_op(rest, s, op, penv.olog); } + if (op) { + std::ignore = rgw::bucketlogging::log_record(driver, + rgw::bucketlogging::LoggingType::Standard, + s->object.get(), + s, + op->canonical_name(), + "", + (s->src_object ? s->src_object->get_size() : (s->object ? s->object->get_size() : 0)), + op, + yield, + true, + false); + } + if (http_ret != nullptr) { *http_ret = s->err.http_ret; } |