]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: more friendly to seastar::do_with() 33199/head
authorKefu Chai <kchai@redhat.com>
Tue, 11 Feb 2020 09:57:42 +0000 (17:57 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 Feb 2020 10:20:54 +0000 (18:20 +0800)
so we don't need to do the box-unbox dance when callng
seastar::do_with() with multiple with'ed variables and
a continuation which returns `errator<...>::future`.

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

index f26b65847c4e8fb1866c085f1942283bf00fd370..91d26fa10dd2474b32d43fc7876c6221ad7a7e74 100644 (file)
@@ -614,6 +614,8 @@ private:
     // let seastar::do_with to up-cast us to seastar::future.
     template<typename T, typename F>
     friend inline auto ::seastar::do_with(T&&, 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);
   };
 
 public: