The existing init_sync() is only called when the sync is first initialized,
need a call for whenever sync runs.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
*reset_backoff = true;
}
+ yield call(data_sync_module->start_sync(sync_env));
+
yield {
if ((rgw_data_sync_info::SyncState)sync_status.sync_info.state == rgw_data_sync_info::StateSync) {
tn->log(10, SSTR("spawning " << num_shards << " shards sync"));
return nullptr;
}
+ virtual RGWCoroutine *start_sync(RGWDataSyncEnv *sync_env) {
+ return nullptr;
+ }
virtual RGWCoroutine *sync_object(RGWDataSyncEnv *sync_env, RGWBucketInfo& bucket_info, rgw_obj_key& key, std::optional<uint64_t> versioned_epoch, rgw_zone_set *zones_trace) = 0;
virtual RGWCoroutine *remove_object(RGWDataSyncEnv *sync_env, RGWBucketInfo& bucket_info, rgw_obj_key& key, real_time& mtime,
bool versioned, uint64_t versioned_epoch, rgw_zone_set *zones_trace) = 0;