]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: friend with do_with_impl()
authorKefu Chai <kchai@redhat.com>
Wed, 6 May 2020 10:39:44 +0000 (18:39 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 6 May 2020 16:33:48 +0000 (00:33 +0800)
seastar changed the implementatino of do_with(), so it's do_with_impl()
who tries to up-cast erroratorized future to seastar::future<>.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/errorator.h

index 4d7a7e167407772dae76f8df4a8659ed19a2b217..e39e361f517cb6fe610587a884e906f39025675e 100644 (file)
@@ -623,11 +623,11 @@ private:
     template <class...>
     friend class ::seastar::future;
 
-    // let seastar::do_with to up-cast us to seastar::future.
+    // let seastar::do_with_impl to up-cast us to seastar::future.
     template<typename T, typename F>
-    friend inline auto ::seastar::do_with(T&&, F&&) noexcept;
+    friend inline auto ::seastar::internal::do_with_impl(T&& rvalue, F&& f);
     template<typename T1, typename T2, typename T3_or_F, typename... More>
-    friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more) noexcept;
+    friend inline auto ::seastar::internal::do_with_impl(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more);
   };
 
   class Enabler {};