]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_sync: drop ENOENT error logs from mdlog 28757/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 12 Mar 2019 10:09:03 +0000 (11:09 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 26 Jun 2019 15:28:50 +0000 (17:28 +0200)
Since this commonly occurs and isn't an error of concern at level 1.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit c246abb3935266f9335cab97e52ab489cc7ebfd6)

Conflicts:
src/rgw/rgw_sync.cc
- mimic has "ldout(cct, 1)" where master has "ldpp_dout(sync_env->dpp, 1)"

src/rgw/rgw_sync.cc

index c4979bd53461dcbe3643403cd1c4d4bb26f12ef9..9aa83f656fc812094a1eb48020adbd0f3c46dabd 100644 (file)
@@ -2315,8 +2315,10 @@ int RGWCloneMetaLogCoroutine::state_read_shard_status()
   completion.reset(new RGWMetadataLogInfoCompletion(
     [this](int ret, const cls_log_header& header) {
       if (ret < 0) {
-        ldout(cct, 1) << "ERROR: failed to read mdlog info with "
-            << cpp_strerror(ret) << dendl;
+        if (ret != -ENOENT) {
+          ldout(cct, 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();