summaryrefslogtreecommitdiffstats
path: root/src/rgw
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@users.noreply.github.com>2024-07-26 15:17:58 +0200
committerGitHub <noreply@github.com>2024-07-26 15:17:58 +0200
commite20e5b727b3899aaf8a3480eed7ac5ecc3a557bf (patch)
tree22acc54e7709c0c480b86e572c1cfa4c9c7656c5 /src/rgw
parentMerge pull request #58449 from cbodley/wip-rgw-gc-list-async (diff)
parentcommon/async: spawn_throttle wraps call to asio::spawn() (diff)
downloadceph-e20e5b727b3899aaf8a3480eed7ac5ecc3a557bf.tar.xz
ceph-e20e5b727b3899aaf8a3480eed7ac5ecc3a557bf.zip
Merge pull request #58798 from cbodley/wip-common-async-spawn-throttle-spawn
common/async: spawn_throttle wraps call to asio::spawn() Reviewed-by: Adam Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/rgw')
-rw-r--r--src/rgw/rgw_op.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index 8a8e631979b..52b407cc9bd 100644
--- a/src/rgw/rgw_op.cc
+++ b/src/rgw/rgw_op.cc
@@ -7163,10 +7163,9 @@ void RGWDeleteMultiObj::execute(optional_yield y)
auto group = ceph::async::spawn_throttle{y, max_aio};
for (const auto& key : multi_delete->objects) {
- boost::asio::spawn(group.get_executor(),
- [this, &key] (boost::asio::yield_context yield) {
- handle_individual_object(key, yield);
- }, group);
+ group.spawn([this, &key] (boost::asio::yield_context yield) {
+ handle_individual_object(key, yield);
+ });
rgw_flush_formatter(s, s->formatter);
}