From da11f77265684bf97942ac42e1dc41173e245b34 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Sat, 17 Sep 2022 11:42:09 -0400 Subject: [PATCH] rgw: remove unused AioThrottles in rgw_op.cc throttle creation was moved to RadosStore::get_atomic_writer(), RadosStore::get_append_writer(), and RadosMultipartUpload::get_writer() these instances in rgw_op.cc were unused Signed-off-by: Casey Bodley --- src/rgw/rgw_op.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index acdb506e51d..c2b8ff41835 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -30,7 +30,6 @@ #include "rgw_acl.h" #include "rgw_acl_s3.h" #include "rgw_acl_swift.h" -#include "rgw_aio_throttle.h" #include "rgw_user.h" #include "rgw_bucket.h" #include "rgw_log.h" @@ -3975,8 +3974,6 @@ void RGWPutObj::execute(optional_yield y) } // create the object processor - auto aio = rgw::make_throttle(s->cct->_conf->rgw_put_obj_min_window_size, - s->yield); std::unique_ptr processor; rgw_placement_rule *pdest_placement = &s->dest_placement; @@ -4418,9 +4415,6 @@ void RGWPostObj::execute(optional_yield y) obj->gen_rand_obj_instance_name(); } - auto aio = rgw::make_throttle(s->cct->_conf->rgw_put_obj_min_window_size, - s->yield); - std::unique_ptr processor; processor = store->get_atomic_writer(this, s->yield, std::move(obj), s->bucket_owner.get_id(),