From ebfed2b1acc9ef5fd9479ebccba30893b65a3254 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 9 Sep 2020 11:25:03 +0800 Subject: [PATCH] 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 --- src/crimson/os/alienstore/thread_pool.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; }; -- 2.47.3