From 9c18ea3c24221b7de159a4a879074084de8af320 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 6 Oct 2020 17:59:20 -0400 Subject: [PATCH] rgw: rename to RGWSyncBucketShardCR Signed-off-by: Casey Bodley --- src/rgw/rgw_data_sync.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index f58c92af31669..fb9bd45aa4f15 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -988,7 +988,7 @@ std::ostream& operator<<(std::ostream& out, const bucket_shard_str& rhs) { return out; } -class RGWRunBucketSyncCoroutine : public RGWCoroutine { +class RGWSyncBucketShardCR : public RGWCoroutine { RGWDataSyncCtx *sc; RGWDataSyncEnv *sync_env; boost::intrusive_ptr lease_cr; @@ -1004,11 +1004,11 @@ class RGWRunBucketSyncCoroutine : public RGWCoroutine { RGWSyncTraceNodeRef tn; public: - RGWRunBucketSyncCoroutine(RGWDataSyncCtx *_sc, - boost::intrusive_ptr lease_cr, - const rgw_bucket_sync_pair_info& _sync_pair, - const RGWSyncTraceNodeRef& _tn_parent, - ceph::real_time* progress) + RGWSyncBucketShardCR(RGWDataSyncCtx *_sc, + boost::intrusive_ptr 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)), @@ -4102,7 +4102,7 @@ int RGWBucketShardIncrementalSyncCR::operate(const DoutPrefixProvider *dpp) 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 @@ -4342,8 +4342,8 @@ int RGWRunBucketSourcesSyncCR::operate(const DoutPrefixProvider *dpp) 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); @@ -4646,7 +4646,7 @@ int RGWGetBucketPeersCR::operate(const DoutPrefixProvider *dpp) 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)); @@ -4733,7 +4733,7 @@ RGWCoroutine *RGWRemoteBucketManager::run_sync_cr(int num) 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) -- 2.39.5