From: Kefu Chai Date: Mon, 5 Jul 2021 14:53:21 +0000 (+0800) Subject: crimson/common: add discard_result() to errorator X-Git-Tag: v17.1.0~1474^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a5af618f760c815bfbd46296c60c70b08576199;p=ceph.git crimson/common: add discard_result() to errorator so we can discard result explicitly. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index f9ec7bf4a3f1..8a821d17b2c1 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -641,6 +641,11 @@ private: }); } + _future<::crimson::errorated_future_marker> + discard_result() noexcept { + return safe_then([](auto&&) {}); + } + // taking ErrorFuncOne and ErrorFuncTwo separately from ErrorFuncTail // to avoid SFINAE template