From: Seena Fallah Date: Wed, 23 Apr 2025 22:22:23 +0000 (+0200) Subject: rgw: dont rate limit forwarded requests X-Git-Tag: v20.1.0~329^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0719988d99bba4bd4a3d47d525ab7e3f4a5f3ca6;p=ceph.git rgw: dont rate limit forwarded requests rely on s->system_request to skip rate limiting on forwarded requests as well as normal system user requests. Signed-off-by: Seena Fallah (cherry picked from commit 004ccc7a987c98b7eb87d698b8091ae95665fe7c) --- diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index 59f877c3736..46a754bf543 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -94,8 +94,7 @@ void RGWProcess::RGWWQ::_process(RGWRequest *req, ThreadPool::TPHandle &) { } bool rate_limit(rgw::sal::Driver* driver, req_state* s) { // we dont want to limit health check or system or admin requests - const auto& is_admin_or_system = s->user->get_info(); - if ((s->op_type == RGW_OP_GET_HEALTH_CHECK) || is_admin_or_system.admin || is_admin_or_system.system) + if ((s->op_type == RGW_OP_GET_HEALTH_CHECK) || s->system_request) return false; std::string userfind; RGWRateLimitInfo global_user;