using sc_config_t = seastore::SegmentCleaner::config_t;
namespace {
+ constexpr bool IS_DUMMY_SYNC = false;
+
[[maybe_unused]] seastar::logger& logger() {
return crimson::get_logger(ceph_subsys_test);
}
TEST_F(a_basic_test_t, 2_node_sizes)
{
run_async([this] {
- auto nm = NodeExtentManager::create_dummy(false);
+ auto nm = NodeExtentManager::create_dummy(IS_DUMMY_SYNC);
auto t = make_transaction();
context_t c{*nm, *t};
std::array<std::pair<NodeImplURef, NodeExtentMutable>, 16> nodes = {
Btree tree;
b_dummy_tree_test_t()
- : moved_nm{NodeExtentManager::create_dummy(false)},
+ : moved_nm{NodeExtentManager::create_dummy(IS_DUMMY_SYNC)},
ref_t{make_transaction()},
t{*ref_t},
c{*moved_nm, t},
class TestTree {
public:
TestTree()
- : moved_nm{NodeExtentManager::create_dummy(false)},
+ : moved_nm{NodeExtentManager::create_dummy(IS_DUMMY_SYNC)},
ref_t{make_transaction()},
t{*ref_t},
c{*moved_nm, t},
seastar::future<> split(const ghobject_t& key, const onode_t& value,
const split_expectation_t& expected) {
return seastar::async([this, key, &value, expected] {
- Btree tree_clone(NodeExtentManager::create_dummy(false));
+ Btree tree_clone(NodeExtentManager::create_dummy(IS_DUMMY_SYNC));
auto ref_t_clone = make_transaction();
Transaction& t_clone = *ref_t_clone;
tree_clone.test_clone_from(t_clone, t, tree).unsafe_get0();
reset();
// create tree
- auto ref_nm = NodeExtentManager::create_dummy(false);
+ auto ref_nm = NodeExtentManager::create_dummy(IS_DUMMY_SYNC);
p_nm = ref_nm.get();
p_btree.emplace(std::move(ref_nm));
return DummyChild::create_initial(get_context(), keys, *this, *p_btree->root_tracker
logger().info("insert {} at {}:", key_hobj_t(key), pos);
DummyChildPool pool_clone;
pool_clone_in_progress = &pool_clone;
- auto ref_nm = NodeExtentManager::create_dummy(false);
+ auto ref_nm = NodeExtentManager::create_dummy(IS_DUMMY_SYNC);
pool_clone.p_nm = ref_nm.get();
pool_clone.p_btree.emplace(std::move(ref_nm));
pool_clone.p_btree->test_clone_from(
{0, 32}, {0, 10}, {0, 4}),
tree{kvs,
#if 0
- NodeExtentManager::create_dummy(false)
+ NodeExtentManager::create_dummy(IS_DUMMY_SYNC)
#else
NodeExtentManager::create_seastore(tm)
#endif