]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: dont rate limit forwarded requests
authorSeena Fallah <seenafallah@gmail.com>
Wed, 23 Apr 2025 22:22:23 +0000 (00:22 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 28 Apr 2025 16:56:06 +0000 (18:56 +0200)
rely on s->system_request to skip rate limiting on forwarded requests
as well as normal system user requests.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_process.cc

index 59f877c3736b56d8e58b422d9bc110ad3bf69c55..46a754bf543880cdd46dbca72ae468954bf9810f 100644 (file)
@@ -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;