pipe.dest.bucket = bucket_info.bucket;
std::vector<rgw_bucket_shard_sync_info> 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;
}
};
-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<rgw_bucket_shard_sync_info> *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<rgw_bucket_shard_sync_info> *status)
{
if (!pipe.source.zone ||
!pipe.source.bucket ||
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<rgw_bucket_shard_sync_info> *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<rgw_bucket_shard_sync_info> *status);
class RGWDefaultSyncModule : public RGWSyncModule {
public:
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;
}
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;
}
std::vector<rgw_bucket_shard_sync_info> status;
status.resize(std::max<size_t>(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;
}
<< " 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;
}