return out;
}
-class RGWRunBucketSyncCoroutine : public RGWCoroutine {
+class RGWSyncBucketShardCR : public RGWCoroutine {
RGWDataSyncCtx *sc;
RGWDataSyncEnv *sync_env;
boost::intrusive_ptr<const RGWContinuousLeaseCR> lease_cr;
RGWSyncTraceNodeRef tn;
public:
- RGWRunBucketSyncCoroutine(RGWDataSyncCtx *_sc,
- boost::intrusive_ptr<const RGWContinuousLeaseCR> lease_cr,
- const rgw_bucket_sync_pair_info& _sync_pair,
- const RGWSyncTraceNodeRef& _tn_parent,
- ceph::real_time* progress)
+ RGWSyncBucketShardCR(RGWDataSyncCtx *_sc,
+ boost::intrusive_ptr<const RGWContinuousLeaseCR> lease_cr,
+ const rgw_bucket_sync_pair_info& _sync_pair,
+ const RGWSyncTraceNodeRef& _tn_parent,
+ ceph::real_time* progress)
: RGWCoroutine(_sc->cct), sc(_sc), sync_env(_sc->env),
lease_cr(std::move(lease_cr)), sync_pair(_sync_pair), progress(progress),
status_oid(RGWBucketPipeSyncStatusManager::inc_status_oid(sc->source_zone, sync_pair)),
tn->unset_flag(RGW_SNS_FLAG_ACTIVE);
if (syncstopped) {
- // transition to StateStopped in RGWRunBucketSyncCoroutine. if sync is
+ // transition to StateStopped in RGWSyncBucketShardCR. if sync is
// still disabled, we'll delete the sync status object. otherwise we'll
// restart full sync to catch any changes that happened while sync was
// disabled
cur_progress = (progress ? &shard_progress[prealloc_stack_id()] : nullptr);
- yield_spawn_window(new RGWRunBucketSyncCoroutine(sc, lease_cr, sync_pair, tn,
- cur_progress),
+ yield_spawn_window(new RGWSyncBucketShardCR(sc, lease_cr, sync_pair, tn,
+ cur_progress),
BUCKET_SYNC_SPAWN_WINDOW,
[&](uint64_t stack_id, int ret) {
handle_complete_stack(stack_id);
return 0;
}
-int RGWRunBucketSyncCoroutine::operate(const DoutPrefixProvider *dpp)
+int RGWSyncBucketShardCR::operate(const DoutPrefixProvider *dpp)
{
reenter(this) {
yield call(new RGWReadBucketPipeSyncStatusCoroutine(sc, sync_pair, &sync_status, &objv_tracker));
return nullptr;
}
- return new RGWRunBucketSyncCoroutine(&sc, nullptr, sync_pairs[num], sync_env->sync_tracer->root_node, nullptr);
+ return new RGWSyncBucketShardCR(&sc, nullptr, sync_pairs[num], sync_env->sync_tracer->root_node, nullptr);
}
int RGWBucketPipeSyncStatusManager::init(const DoutPrefixProvider *dpp)