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->get_info(), &status);
+ r = rgw_read_bucket_inc_sync_status(dpp, store, pipe, bucket_info, &source_bucket->get_info(), &status);
if (r < 0) {
ldpp_dout(dpp, -1) << "failed to read bucket sync status: " << cpp_strerror(r) << dendl;
return r;
}
};
-int rgw_bucket_sync_status(const DoutPrefixProvider *dpp,
- rgw::sal::RadosStore* 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::RadosStore *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(const DoutPrefixProvider *dpp);
};
-/// read the sync status of all bucket shards from the given source zone
-int rgw_bucket_sync_status(const DoutPrefixProvider *dpp,
- rgw::sal::RadosStore* 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::RadosStore *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:
ldpp_dout(this, 20) << "RGWOp_BILog_Status::execute(optional_yield y): getting sync status for pipe=" << pipe << dendl;
- op_ret = rgw_bucket_sync_status(this, static_cast<rgw::sal::RadosStore*>(store), pipe, bucket->get_info(), nullptr, &status);
+ op_ret = rgw_read_bucket_inc_sync_status(this, static_cast<rgw::sal::RadosStore*>(store),
+ pipe, bucket->get_info(), nullptr, &status);
if (op_ret < 0) {
ldpp_dout(this, -1) << "ERROR: rgw_bucket_sync_status() on pipe=" << pipe << " returned ret=" << op_ret << dendl;
pipe.dest.bucket = pinfo->bucket;
}
- int r = rgw_bucket_sync_status(this, static_cast<rgw::sal::RadosStore*>(store), pipe, *pinfo, &bucket->get_info(), ¤t_status);
+ int r = rgw_read_bucket_inc_sync_status(this, static_cast<rgw::sal::RadosStore*>(store),
+ pipe, *pinfo, &bucket->get_info(), ¤t_status);
if (r < 0) {
ldpp_dout(this, -1) << "ERROR: rgw_bucket_sync_status() on pipe=" << pipe << " returned ret=" << r << dendl;
op_ret = r;
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;
}