From: Adam Emerson Date: Tue, 14 May 2024 19:07:29 +0000 (-0400) Subject: common/error_code: Default error code is -EIO X-Git-Tag: v20.3.0~169^2~40 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa9368df27868330fd4fd582683118cb80849f17;p=ceph.git 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 --- diff --git a/src/common/error_code.cc b/src/common/error_code.cc index 9c981a210774..2fbd149d3e25 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