From ce72254b37618e63ee61d5f9a9a9c1fbfed41557 Mon Sep 17 00:00:00 2001 From: Tianshan Qu Date: Mon, 16 Sep 2019 13:59:31 +0800 Subject: [PATCH] rgw: fix data sync start delay if remote haven't init data_log Fixes: https://tracker.ceph.com/issues/41839 Signed-off-by: Tianshan Qu (cherry picked from commit 339344ab1928ea805f55368b854ade35efcecf08) --- src/rgw/rgw_data_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 8060b73f264a0..e3fd38aa955a2 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -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(); -- 2.39.5