RGWDataSyncShardCR will be reinited by RGWDataSyncShardControlCR after
error return, the sync_marker is old one since it's read in
RGWDataSyncShardControlCR's start process, so keep it updated to prevent
redo some sync process.
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
rgw_pool pool;
uint32_t shard_id;
- rgw_data_sync_marker sync_marker;
+ rgw_data_sync_marker& sync_marker;
RGWRadosGetOmapKeysCR::ResultPtr omapkeys;
std::set<std::string> entries;
public:
RGWDataSyncShardCR(RGWDataSyncEnv *_sync_env,
rgw_pool& _pool,
- uint32_t _shard_id, const rgw_data_sync_marker& _marker,
+ uint32_t _shard_id, rgw_data_sync_marker& _marker,
RGWSyncTraceNodeRef& _tn,
bool *_reset_backoff) : RGWCoroutine(_sync_env->cct),
sync_env(_sync_env),