Skip to content

Commit 6771fb5

Browse files
authored
Merge pull request ceph#63561 from cbodley/wip-71479
rgw: RGWPostBucketLoggingOp uses yield context Reviewed-by: Yuval Lifshitz <[email protected]>
2 parents df04e25 + f58fa5f commit 6771fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rgw/rgw_rest_bucket_logging.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ class RGWPostBucketLoggingOp : public RGWDefaultResponseOp {
380380
const auto& target_bucket_id = target_bucket->get_key();
381381
std::string obj_name;
382382
RGWObjVersionTracker objv_tracker;
383-
op_ret = target_bucket->get_logging_object_name(obj_name, configuration.target_prefix, null_yield, this, &objv_tracker);
383+
op_ret = target_bucket->get_logging_object_name(obj_name, configuration.target_prefix, y, this, &objv_tracker);
384384
if (op_ret < 0) {
385385
ldpp_dout(this, 1) << "ERROR: failed to get pending logging object name from target bucket '" << target_bucket_id << "'" << dendl;
386386
return;
387387
}
388388
const auto region = driver->get_zone()->get_zonegroup().get_api_name();
389-
op_ret = rgw::bucketlogging::rollover_logging_object(configuration, target_bucket, obj_name, this, region, source_bucket, null_yield, true, &objv_tracker, &old_obj);
389+
op_ret = rgw::bucketlogging::rollover_logging_object(configuration, target_bucket, obj_name, this, region, source_bucket, y, true, &objv_tracker, &old_obj);
390390
if (op_ret < 0) {
391391
if (op_ret == -ENOENT) {
392392
ldpp_dout(this, 5) << "WARNING: no pending logging object '" << obj_name << "'. nothing to flush"

0 commit comments

Comments
 (0)