From: Casey Bodley Date: Tue, 6 Oct 2020 21:59:09 +0000 (-0400) Subject: rgw: rename to rgw_read_bucket_inc_sync_status X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a9bcb6b075226620ac64e6498c472d1d7bbaf0ee;p=ceph.git rgw: rename to rgw_read_bucket_inc_sync_status Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 475e67cf32568..f0a4341a4bc25 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -2279,7 +2279,7 @@ static int bucket_source_sync_status(rgw::sal::RGWRadosStore *store, const RGWZo pipe.dest.bucket = bucket_info.bucket; std::vector status; - r = rgw_bucket_sync_status(dpp(), store, pipe, bucket_info, &source_bucket_info, &status); + r = rgw_read_bucket_inc_sync_status(dpp(), store, pipe, bucket_info, &source_bucket_info, &status); if (r < 0) { lderr(store->ctx()) << "failed to read bucket sync status: " << cpp_strerror(r) << dendl; return r; diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 7a9ba9813ab0c..b62b281bde347 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -4979,12 +4979,12 @@ class RGWCollectBucketSyncStatusCR : public RGWShardCollectCR { } }; -int rgw_bucket_sync_status(const DoutPrefixProvider *dpp, - rgw::sal::RGWRadosStore *store, - const rgw_sync_bucket_pipe& pipe, - const RGWBucketInfo& dest_bucket_info, - const RGWBucketInfo *psource_bucket_info, - std::vector *status) +int rgw_read_bucket_inc_sync_status(const DoutPrefixProvider *dpp, + rgw::sal::RGWRadosStore *store, + const rgw_sync_bucket_pipe& pipe, + const RGWBucketInfo& dest_bucket_info, + const RGWBucketInfo *psource_bucket_info, + std::vector *status) { if (!pipe.source.zone || !pipe.source.bucket || diff --git a/src/rgw/rgw_data_sync.h b/src/rgw/rgw_data_sync.h index 9bf54edc5fbda..5af4b5a94a813 100644 --- a/src/rgw/rgw_data_sync.h +++ b/src/rgw/rgw_data_sync.h @@ -674,13 +674,13 @@ public: int run(); }; -/// read the sync status of all bucket shards from the given source zone -int rgw_bucket_sync_status(const DoutPrefixProvider *dpp, - rgw::sal::RGWRadosStore *store, - const rgw_sync_bucket_pipe& pipe, - const RGWBucketInfo& dest_bucket_info, - const RGWBucketInfo *psource_bucket_info, - std::vector *status); +/// read the incremental sync status of all bucket shards from the given source zone +int rgw_read_bucket_inc_sync_status(const DoutPrefixProvider *dpp, + rgw::sal::RGWRadosStore *store, + const rgw_sync_bucket_pipe& pipe, + const RGWBucketInfo& dest_bucket_info, + const RGWBucketInfo *psource_bucket_info, + std::vector *status); class RGWDefaultSyncModule : public RGWSyncModule { public: diff --git a/src/rgw/rgw_rest_log.cc b/src/rgw/rgw_rest_log.cc index 7c3540ce64cc4..e457279f34bea 100644 --- a/src/rgw/rgw_rest_log.cc +++ b/src/rgw/rgw_rest_log.cc @@ -869,10 +869,10 @@ void RGWOp_BILog_Status::execute(optional_yield y) ldout(s->cct, 20) << "RGWOp_BILog_Status::execute(optional_yield y): getting sync status for pipe=" << pipe << dendl; - op_ret = rgw_bucket_sync_status(this, store, pipe, info, nullptr, &status); + op_ret = rgw_read_bucket_inc_sync_status(this, store, pipe, info, nullptr, &status); if (op_ret < 0) { - lderr(s->cct) << "ERROR: rgw_bucket_sync_status() on pipe=" << pipe << " returned ret=" << op_ret << dendl; + lderr(s->cct) << "ERROR: rgw_read_bucket_sync_status() on pipe=" << pipe << " returned ret=" << op_ret << dendl; } return; } @@ -923,9 +923,9 @@ void RGWOp_BILog_Status::execute(optional_yield y) pipe.dest.bucket = pinfo->bucket; } - int r = rgw_bucket_sync_status(this, store, pipe, *pinfo, &info, ¤t_status); + int r = rgw_read_bucket_inc_sync_status(this, store, pipe, *pinfo, &info, ¤t_status); if (r < 0) { - lderr(s->cct) << "ERROR: rgw_bucket_sync_status() on pipe=" << pipe << " returned ret=" << r << dendl; + lderr(s->cct) << "ERROR: rgw_read_bucket_sync_status() on pipe=" << pipe << " returned ret=" << r << dendl; op_ret = r; return; } diff --git a/src/rgw/rgw_sync_checkpoint.cc b/src/rgw/rgw_sync_checkpoint.cc index 2e57aa9c21a1f..2bd1f0edc6e43 100644 --- a/src/rgw/rgw_sync_checkpoint.cc +++ b/src/rgw/rgw_sync_checkpoint.cc @@ -99,8 +99,8 @@ int bucket_source_sync_checkpoint(const DoutPrefixProvider* dpp, std::vector status; status.resize(std::max(1, num_shards)); - int r = rgw_bucket_sync_status(dpp, store, pipe, bucket_info, - &source_bucket_info, &status); + int r = rgw_read_bucket_inc_sync_status(dpp, store, pipe, bucket_info, + &source_bucket_info, &status); if (r < 0) { return r; } @@ -115,7 +115,8 @@ int bucket_source_sync_checkpoint(const DoutPrefixProvider* dpp, << " local status: " << status << '\n' << " remote markers: " << remote_markers << dendl; std::this_thread::sleep_until(delay_until); - r = rgw_bucket_sync_status(dpp, store, pipe, bucket_info, &source_bucket_info, &status); + r = rgw_read_bucket_inc_sync_status(dpp, store, pipe, bucket_info, + &source_bucket_info, &status); if (r < 0) { return r; }