diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 7fb4c14e5bb..36ca717bee8 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -3029,6 +3029,12 @@ int RGWBucketShardIncrementalSyncCR::operate() /* we have reported this error */ } } + if (sync_status != 0) + break; + } + if (sync_status != 0) { + /* get error, stop */ + break; } if (!marker_tracker.index_key_to_marker(key, cur_id)) { set_status() << "can't do op, sync already in progress for object";