From: Ronen Friedman Date: Mon, 13 Apr 2026 15:46:28 +0000 (+0000) Subject: cls: return EIO instead of ceph::from_error_code() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5cf6a04dbbc601ec66e6afdf2873e49936324ae6;p=ceph.git cls: return EIO instead of ceph::from_error_code() 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 --- diff --git a/src/cls/sem_set/module.cc b/src/cls/sem_set/module.cc index e891adabd0d5..68d86dad847b 100644 --- a/src/cls/sem_set/module.cc +++ b/src/cls/sem_set/module.cc @@ -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();