]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: s/crimson::do_until/crimson::repeat/ 41984/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Jun 2021 05:37:40 +0000 (13:37 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Jun 2021 11:01:28 +0000 (19:01 +0800)
commit3c11a7f2596137b62a1d9258f7d96ecf94af6dd3
treebf34ec0219bde02936195d8f477dcef4ebe581d5
parentfd00aa96a4384b6a6581c6b26126d7ffbee6021a
crimson: s/crimson::do_until/crimson::repeat/

seastar::do_until() takes a predicate functor and a continuation. while
seastar::repeat() takes a single continuation which returns
stop_iteration::yes or stop_iteration::no. in general, we want to mirror
and extend the facilities offered by seastar instead of changing it in
an unexpected way. while crimson::do_until() only take a single
continuation which returns a bool. in hope to be more consistent, in
this change, all occurances of crimson::do_until are replaced with
crimson::repeat.

Signed-off-by: Kefu Chai <kchai@redhat.com>
13 files changed:
src/crimson/common/errorator.h
src/crimson/common/interruptible_future.h
src/crimson/os/seastore/journal.cc
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc
src/crimson/os/seastore/onode_manager/staged-fltree/fltree_onode_manager.cc
src/crimson/os/seastore/onode_manager/staged-fltree/node.cc
src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h
src/crimson/os/seastore/random_block_manager/nvme_manager.cc
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/transaction_manager.h
src/test/crimson/seastore/onode_tree/test_staged_fltree.cc
src/test/crimson/test_errorator.cc