Skip to content

Commit 0719988

Browse files
clwluvwcbodley
authored andcommitted
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 <[email protected]> (cherry picked from commit 004ccc7)
1 parent 37c2d36 commit 0719988

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rgw/rgw_process.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ void RGWProcess::RGWWQ::_process(RGWRequest *req, ThreadPool::TPHandle &) {
9494
}
9595
bool rate_limit(rgw::sal::Driver* driver, req_state* s) {
9696
// we dont want to limit health check or system or admin requests
97-
const auto& is_admin_or_system = s->user->get_info();
98-
if ((s->op_type == RGW_OP_GET_HEALTH_CHECK) || is_admin_or_system.admin || is_admin_or_system.system)
97+
if ((s->op_type == RGW_OP_GET_HEALTH_CHECK) || s->system_request)
9998
return false;
10099
std::string userfind;
101100
RGWRateLimitInfo global_user;

0 commit comments

Comments
 (0)