]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/error_code: Default error code is -EIO
authorAdam Emerson <aemerson@redhat.com>
Tue, 14 May 2024 19:07:29 +0000 (15:07 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Apr 2025 15:10:13 +0000 (11:10 -0400)
-EDOM never really made that much sense and this is more coherent with
the rest of Ceph.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/common/error_code.cc

index 9c981a2107745d31f7b08035dfa42322eefe8bb1..2fbd149d3e250a7a12398d083099243134b3e331 100644 (file)
@@ -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