]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused AioThrottles in rgw_op.cc 48156/head
authorCasey Bodley <cbodley@redhat.com>
Sat, 17 Sep 2022 15:42:09 +0000 (11:42 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sat, 17 Sep 2022 15:42:11 +0000 (11:42 -0400)
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 <cbodley@redhat.com>
src/rgw/rgw_op.cc

index acdb506e51dcb3f75abfc45bf962c9fc53ee96f3..c2b8ff418358203bf04d9ff4b778f04019a0399e 100644 (file)
@@ -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<rgw::sal::Writer> 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<rgw::sal::Writer> processor;
     processor = store->get_atomic_writer(this, s->yield, std::move(obj),
                                         s->bucket_owner.get_id(),