]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_sync: drop ENOENT error logs from mdlog 27110/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 12 Mar 2019 10:09:03 +0000 (11:09 +0100)
committerPrashant D <pdhange@redhat.com>
Fri, 22 Mar 2019 01:56:55 +0000 (21:56 -0400)
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 : Resolved in state_read_shard_status

src/rgw/rgw_sync.cc

index 7b8c5eb1ba657d2f6ef9dd36c61fe83193bf1b63..dcf754cbe3ba02b298daad80390791c3a8cc0f10 100644 (file)
@@ -2208,8 +2208,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();