]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix data sync start delay if remote haven't init data_log
authorTianshan Qu <tianshan@xsky.com>
Mon, 16 Sep 2019 05:59:31 +0000 (13:59 +0800)
committerTianshan Qu <tianshan@xsky.com>
Mon, 16 Sep 2019 05:59:31 +0000 (13:59 +0800)
Fixes: https://tracker.ceph.com/issues/41839
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_data_sync.cc

index 4c81ffe7571d675918152e298189222971fa2aed..5bd9389cc43270d02edae38418e1cfbbed903bfd 100644 (file)
@@ -1420,7 +1420,7 @@ public:
         spawned_keys.clear();
         yield call(new RGWReadRemoteDataLogShardCR(sync_env, shard_id, sync_marker.marker,
                                                    &next_marker, &log_entries, &truncated));
-        if (retcode < 0) {
+        if (retcode < 0 && retcode != -ENOENT) {
           tn->log(0, SSTR("ERROR: failed to read remote data log info: ret=" << retcode));
           stop_spawned_services();
           drain_all();