]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls: return EIO instead of ceph::from_error_code() 68359/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 13 Apr 2026 15:46:28 +0000 (15:46 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 13 Apr 2026 15:47:31 +0000 (15:47 +0000)
In cls/sem_set/module.cc, the list() function's catch
block called ceph::from_error_code(e.code()), but
the symbol was unresolved in some build configurations.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/cls/sem_set/module.cc

index e891adabd0d59bd0ba4dea86b01347e1b84590f1..68d86dad847bf6b9f6a79c2723cd220bc1a3b915 100644 (file)
@@ -259,7 +259,7 @@ int list(cls_method_context_t hctx, buffer::list *in, buffer::list *out)
     } catch (const sys::system_error& e) {
       CLS_ERR("CAN'T HAPPEN: %s: failed to decode seamaphore: %s",
              __PRETTY_FUNCTION__, e.what());
-      return ceph::from_error_code(e.code());;
+      return -EIO;
     }
     if (!more) {
       res.cursor.clear();