]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix data sync start delay if remote haven't init data_log 30509/head
authorTianshan Qu <tianshan@xsky.com>
Mon, 16 Sep 2019 05:59:31 +0000 (13:59 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 23 Sep 2019 04:26:35 +0000 (00:26 -0400)
Fixes: https://tracker.ceph.com/issues/41839
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
(cherry picked from commit 339344ab1928ea805f55368b854ade35efcecf08)

src/rgw/rgw_data_sync.cc

index 57ee38f3267b9c4e3aa10e35fdffca5aa8aee045..4c1cc9f68e53156649ec63a5a7e3c569093a60fa 100644 (file)
@@ -1421,7 +1421,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();