]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common,cmake: use seastar API Level 5
authorKefu Chai <kchai@redhat.com>
Wed, 9 Sep 2020 13:03:32 +0000 (21:03 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 10 Sep 2020 13:28:55 +0000 (21:28 +0800)
commit260a702ba983f1bca29d4c8d1e28f3eef46c6699
treed09b7bfad6f22b09a6dfdb8a2686ad5378f9b5a5
parent285a05d6ea5409aa16848bc18ab6419cb82f3c6a
crimson/common,cmake: use seastar API Level 5

* cmake: bump Seastar_API_LEVEL to "5"
* errorator.h: add invoke() methods to futurize variants, as in seastar
  API level 5, the future's store type is now either monostate or
  a single T, instead of tuple. so it'd be simpler to integrate
  with seastar with invoke() semantic without the boxing-unboxing
  dance.
* errorator.h: drop apply() methods, as they are not used anymore.
* errorator.h: rename and revise tuple2future. as the store type
  is not tuple now, the trait's name is changed accordingly to
  match seastar::internal::future_stored_type

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