mirror of
https://github.com/ceph/ceph
synced 2024-12-25 12:54:16 +00:00
rgw/rados: copy_obj_data() can use yielding throttle
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
e587a71aff
commit
b929958f0f
@ -4619,14 +4619,11 @@ int RGWRados::copy_obj_data(RGWObjectCtx& obj_ctx,
|
||||
string tag;
|
||||
append_rand_alpha(cct, tag, tag, 32);
|
||||
|
||||
rgw::BlockingAioThrottle aio(cct->_conf->rgw_put_obj_min_window_size);
|
||||
auto aio = rgw::make_throttle(cct->_conf->rgw_put_obj_min_window_size, y);
|
||||
using namespace rgw::putobj;
|
||||
// do not change the null_yield in the initialization of this AtomicObjectProcessor
|
||||
// it causes crashes in the ragweed tests
|
||||
AtomicObjectProcessor processor(&aio, this, dest_bucket_info, &dest_placement,
|
||||
dest_bucket_info.owner, obj_ctx,
|
||||
dest_obj, olh_epoch, tag,
|
||||
dpp, null_yield);
|
||||
AtomicObjectProcessor processor(aio.get(), this, dest_bucket_info,
|
||||
&dest_placement, dest_bucket_info.owner,
|
||||
obj_ctx, dest_obj, olh_epoch, tag, dpp, y);
|
||||
int ret = processor.prepare(y);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user