Fixes: https://tracker.ceph.com/issues/48322
Signed-off-by: wangyunqing <wangyunqing@inspur.com>
obj_size = astate->size;
if (!s->system_request) { // no quota enforcement for system requests
+ if (astate->accounted_size > static_cast<size_t>(s->cct->_conf->rgw_max_put_size)) {
+ op_ret = -ERR_TOO_LARGE;
+ return;
+ }
// enforce quota against the destination bucket owner
op_ret = dest_bucket->check_quota(this, user_quota, bucket_quota,
astate->accounted_size, y);