From: Radoslaw Zarzynski Date: Mon, 9 Sep 2019 20:42:21 +0000 (+0200) Subject: crimson: let an errorator to be converted into more errorated one. X-Git-Tag: v15.1.0~801^2~42 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6aa39ae861d3fd6473729799a5296052f680686f;p=ceph.git crimson: let an errorator to be converted into more errorated one. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 155570e71882..410d69176d1e 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -48,7 +48,6 @@ struct errorator { template class future : private seastar::future { using base_t = seastar::future; - using errorator_type = ceph::errorator; // TODO: let `exception` use other type than `ct_error`. template <_impl::ct_error V> @@ -174,12 +173,27 @@ struct errorator { using base_t::base_t; + public: + using errorator_type = ceph::errorator; + [[gnu::always_inline]] future(base_t&& base) : base_t(std::move(base)) { } - public: + template