From: Kefu Chai Date: Wed, 9 Sep 2020 03:25:03 +0000 (+0800) Subject: crimson/os: instantiate future_type<> with future_stored_type X-Git-Tag: v16.1.0~1157^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebfed2b1acc9ef5fd9479ebccba30893b65a3254;p=ceph.git crimson/os: instantiate future_type<> with future_stored_type to accommodate the change on seastar's side, which started to use monostate for representing `void` return type, and hide this convention using future_stored_type_t. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/os/alienstore/thread_pool.h b/src/crimson/os/alienstore/thread_pool.h index f8d773319c78..27840da18910 100644 --- a/src/crimson/os/alienstore/thread_pool.h +++ b/src/crimson/os/alienstore/thread_pool.h @@ -24,9 +24,10 @@ struct WorkItem { template struct Task final : WorkItem { using T = std::invoke_result_t; - using future_state_t = std::conditional_t, - seastar::future_state<>, - seastar::future_state>; + using future_stored_type_t = + std::conditional_t, + seastar::internal::future_stored_type_t<>, + seastar::internal::future_stored_type_t>; using futurator_t = seastar::futurize; public: explicit Task(Func&& f) @@ -56,7 +57,7 @@ public: } private: Func func; - future_state_t state; + seastar::future_state state; seastar::readable_eventfd on_done; };