]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/common/errorator: fix skipped aborts
authorXuehan Xu <xuxuehan@qianxin.com>
Tue, 8 Apr 2025 12:50:47 +0000 (20:50 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 22 Apr 2025 15:11:58 +0000 (15:11 +0000)
commit91c1a51da3cad49c3445e7544597eebc7374a077
tree1131ef7a2aac8570048f697979c8db785bfaebfa
parente05d768761d6128f11f4993ac586c9825da9d201
crimson/common/errorator: fix skipped aborts

We should also invoke the errfunc (which aborts) when the
return type is no_touch_error_marker.
Added comments explaining:
* why it's forbidden to return void
* why std::is_same_v<return_t, no_touch_error_marker> is checked

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/common/errorator.h