#ifndef NDEBUG
validate_cursor_from_item(p_kv->key, p_kv->value, cursor);
return tree->find(t, p_kv->key
- ).si_then([this, cursor, p_kv](auto cursor_) mutable {
+ ).si_then([cursor, p_kv](auto cursor_) mutable {
assert(!cursor_.is_end());
ceph_assert(cursor_.get_ghobj() == p_kv->key);
ceph_assert(cursor_.value() == cursor.value());
assert(c_iter != cursors->end());
auto p_kv = **ref_kv_iter;
// validate values in tree keep intact
- return tree->find(t, p_kv->key).si_then([this, &c_iter, ref_kv_iter](auto cursor) {
+ return tree->find(t, p_kv->key).si_then([&c_iter, ref_kv_iter](auto cursor) {
auto p_kv = **ref_kv_iter;
validate_cursor_from_item(p_kv->key, p_kv->value, cursor);
// validate values in cursors keep intact
eagain_ifuture<> get_stats(Transaction& t) {
return tree->get_stats_slow(t
- ).si_then([this](auto stats) {
+ ).si_then([](auto stats) {
logger().warn("{}", stats);
});
}
return seastar::make_ready_future<seastar::stop_iteration>(
seastar::stop_iteration::yes);
}
- return validate_one(t, iter).si_then([this, &iter] {
+ return validate_one(t, iter).si_then([&iter] {
++iter;
return seastar::make_ready_future<seastar::stop_iteration>(
seastar::stop_iteration::no);
[this, start, end, limit, &ret] (auto& t) {
return with_trans_intr(
*t,
- [this, start, end, limit, &ret](auto &t) {
+ [this, start, end, limit](auto &t) {
return onode_manager->list_onodes(t, start, end, limit);
}).safe_then([&ret] (auto&& _ret) {
ret = std::move(_ret);
items.emplace_back(&p_kv->value);
++it;
}
- with_transaction([this, &oids, &items, f=std::move(f)] (auto& t) mutable {
+ with_transaction([&oids, &items, f=std::move(f)] (auto& t) mutable {
std::invoke(f, t, oids, items);
});
}
TEST_F(a_basic_test_t, 2_node_sizes)
{
- run_async([this] {
+ run_async([] {
auto nm = NodeExtentManager::create_dummy(IS_DUMMY_SYNC);
auto t = make_test_transaction();
ValueBuilderImpl<UnboundedValue> vb;
TEST_F(c_dummy_test_t, 4_split_merge_leaf_node)
{
- run_async([this] {
+ run_async([] {
{
TestTree test;
test.build_tree({2, 5}, {2, 5}, {2, 5}, 120).get0();
).handle_error_interruptible(
eagain_iertr::pass_further{},
crimson::ct_error::assert_all{"Invalid error during create_initial()"}
- ).si_then([c, &pool, initial](auto super) {
+ ).si_then([c, initial](auto super) {
initial->make_root_new(c, std::move(super));
return initial->upgrade_root(c).si_then([initial] {
return initial;
TEST_F(c_dummy_test_t, 5_split_merge_internal_node)
{
- run_async([this] {
+ run_async([] {
DummyChildPool pool;
{
logger().info("\n---------------------------------------------"