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: testing/wip-vshankar-testing-20250407.170244-debug~16^2~40 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=aa9368df27868330fd4fd582683118cb80849f17;p=ceph-ci.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 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