]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common/errorator: construct future<> with a future_state_base
authorKefu Chai <kchai@redhat.com>
Thu, 23 Jan 2020 07:38:11 +0000 (15:38 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Jan 2020 07:52:33 +0000 (15:52 +0800)
commit5a132172ddb564f07aa7073c246b3d29f2807a34
treeb3546d0594878e61aa0d9022244db2d05fb22d40
parent6857348f64b87d1ba073a9d8dded46044b05e004
crimson/common/errorator: construct future<> with a future_state_base

this change is made to adapt
https://github.com/scylladb/seastar/commit/89e801b373423b068b3a70e50b656348f549ade0

* always use the helpers from `futurize` instead of using
  `::seastar::make_exception_future()` directly. as
  `make_exception_future(future_state_base&& state)` is located in
  `seastar::internal` namespace
* add `noexcept` specifier in both constructors. to match with the
  helpers of `make_exception_future2()` which dispatch the call to
  different constructor variants.

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