]> 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 30510/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:04 +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 8060b73f264a0aacc11a59a07ee6fc9a63d1ff36..e3fd38aa955a21c166bbfbb7ec826a93bbaef3af 100644 (file)
@@ -1494,7 +1494,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();