]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rbd: drop overzealous CLS_ERR message in mirror_remote_namespace_get() 62771/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 10 Apr 2025 21:11:38 +0000 (23:11 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 10 Apr 2025 21:11:38 +0000 (23:11 +0200)
Currently it unnecessarily floods the log of the OSD which hosts
rbd_mirroring object with "No such file or directory" errors.  Just
drop it as read_key() already logs all errors except ENOENT.

Credit to N Balachandran <nibalach@redhat.com> for spotting this.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/cls/rbd/cls_rbd.cc

index b6e2af50064ef4dd149ddeaa8251e3c9f5ecb66e..7c0cd1f1266638e951ab1997f2fe2909a4723ab1 100644 (file)
@@ -5938,8 +5938,6 @@ int mirror_remote_namespace_get(cls_method_context_t hctx, bufferlist *in,
   std::string mirror_ns_decode;
   int r = read_key(hctx, mirror::REMOTE_NAMESPACE, &mirror_ns_decode);
   if (r < 0) {
-    CLS_ERR("error getting mirror remote namespace: %s",
-            cpp_strerror(r).c_str());
     return r;
   }