return [=, &handler, &cursor, &budget_used] {
if (!cursor.last_valid_header_found) {
return read_validate_record_metadata(cursor.offset, nonce
- ).safe_then([=, &cursor, &handler](auto md) {
+ ).safe_then([=, &cursor](auto md) {
logger().debug(
"Journal::scan_valid_records: read complete {}",
cursor.offset);
&root_tracker](auto root) mutable {
assert(root->impl->field_type() == field_type_t::N0);
root->as_root(std::move(_super));
+ std::ignore = c; // as only used in an assert
+ std::ignore = root_tracker;
assert(root == root_tracker.get_root(c.t));
return node_ertr::make_ready_future<Ref<Node>>(root);
});
return InternalNode::allocate(
c, impl->field_type(), impl->is_level_tail(), impl->level());
}).safe_then([this_ref, this, c, left_key, left_child, right_child,
- insert_pos, insert_stage, insert_size](auto fresh_right) mutable {
+ insert_pos, insert_stage=insert_stage, insert_size=insert_size](auto fresh_right) mutable {
auto right_node = fresh_right.node;
auto left_child_addr = left_child->impl->laddr();
auto left_child_addr_packed = laddr_packed_t{left_child_addr};
).safe_then([this_ref, this, position, child_addr] (auto child) {
assert(child_addr == child->impl->laddr());
assert(position == child->parent_info().position);
+ std::ignore = position;
+ std::ignore = child_addr;
validate_child(*child);
return child;
});
return (is_root() ? upgrade_root(c) : node_ertr::now()
).safe_then([this, c] {
return LeafNode::allocate(c, impl->field_type(), impl->is_level_tail());
- }).safe_then([this_ref, this, c, &key, &value, &history,
- insert_pos, insert_stage, insert_size](auto fresh_right) mutable {
+ }).safe_then([this_ref, this, c, &key, &value,
+ insert_pos, insert_stage=insert_stage, insert_size=insert_size](auto fresh_right) mutable {
auto right_node = fresh_right.node;
// no need to bump version for right node, as it is fresh
on_layout_change();
tm->create_transaction(),
[this, offset, size](auto &t) {
return tm->read_extents<TestBlock>(*t, offset, size
- ).safe_then([=, &t](auto ext_list) mutable {
+ ).safe_then([=](auto ext_list) mutable {
size_t cur = offset;
bufferlist bl;
for (auto &i: ext_list) {