]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/cls/rbd/cls_rbd.cc
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / cls / rbd / cls_rbd.cc
index 3f58ec30ed44f0cd094513f26577ded14e5b8752..3a810e2e91452bbbba88bd3411538f81fdac75de 100644 (file)
@@ -5682,8 +5682,10 @@ int mirror_image_get_image_id(cls_method_context_t hctx, bufferlist *in,
   std::string image_id;
   int r = read_key(hctx, mirror::global_key(global_id), &image_id);
   if (r < 0) {
-    CLS_ERR("error retrieving image id for global id '%s': %s",
-            global_id.c_str(), cpp_strerror(r).c_str());
+    if (r != -ENOENT) {
+      CLS_ERR("error retrieving image id for global id '%s': %s",
+              global_id.c_str(), cpp_strerror(r).c_str());
+    }
     return r;
   }