From aa9368df27868330fd4fd582683118cb80849f17 Mon Sep 17 00:00:00 2001 From: Adam Emerson Date: Tue, 14 May 2024 15:07:29 -0400 Subject: [PATCH] common/error_code: Default error code is -EIO -EDOM never really made that much sense and this is more coherent with the rest of Ceph. Signed-off-by: Adam Emerson --- src/common/error_code.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/error_code.cc b/src/common/error_code.cc index 9c981a21077..2fbd149d3e2 100644 --- a/src/common/error_code.cc +++ b/src/common/error_code.cc @@ -188,8 +188,8 @@ const error_category& ceph_category() noexcept { } // Add any other categories we use here. - // Marcus likes this as a sentinel for 'Error code? What error code?' - return -EDOM; + // So many things defautl to EIO this is probably the safest + return -EIO; } } #pragma GCC diagnostic pop -- 2.39.5