From c246abb3935266f9335cab97e52ab489cc7ebfd6 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Tue, 12 Mar 2019 11:09:03 +0100 Subject: [PATCH] rgw_sync: drop ENOENT error logs from mdlog Since this commonly occurs and isn't an error of concern at level 1. Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_sync.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 51e4f2952df..09e4c8034e7 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -2309,8 +2309,10 @@ int RGWCloneMetaLogCoroutine::state_read_shard_status() completion.reset(new RGWMetadataLogInfoCompletion( [this](int ret, const cls_log_header& header) { if (ret < 0) { - ldpp_dout(sync_env->dpp, 1) << "ERROR: failed to read mdlog info with " - << cpp_strerror(ret) << dendl; + if (ret != -ENOENT) { + ldpp_dout(sync_env->dpp, 1) << "ERROR: failed to read mdlog info with " + << cpp_strerror(ret) << dendl; + } } else { shard_info.marker = header.max_marker; shard_info.last_update = header.max_time.to_real_time(); -- 2.39.5