]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw_sync: drop ENOENT error logs from mdlog
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 12 Mar 2019 10:09:03 +0000 (11:09 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 12 Mar 2019 10:09:03 +0000 (11:09 +0100)
Since this commonly occurs and isn't an error of concern at level 1.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_sync.cc

index 51e4f2952df2c29ca140e39548df63e7dd98062d..09e4c8034e75b314e0b4e5822198598dbf92d3e4 100644 (file)
@@ -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();