ctx.t,
overwrite_mapping
).handle_error_interruptible(
- TransactionManager::base_iertr::pass_further{},
+ base_iertr::pass_further{},
crimson::ct_error::assert_all{
"ObjectDataHandler::do_remapping hit invalid error"
}
futs, [](auto &fut) { return std::move(fut); });
}
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::delta_based_edge_overwrite(
context_t ctx,
overwrite_range_t &overwrite_range,
});
}
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::merge_into_pending_edge(
context_t ctx,
overwrite_range_t &overwrite_range,
});
}
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::do_merge_based_edge_punch(
context_t ctx,
overwrite_range_t &overwrite_range,
).si_then([edge_mapping, ctx] {
return ctx.tm.remove(ctx.t, std::move(edge_mapping));
}).handle_error_interruptible(
- ObjectDataHandler::base_iertr::pass_further{},
+ base_iertr::pass_further{},
crimson::ct_error::assert_all{"unexpected error"}
);
}
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::do_remap_based_edge_punch(
context_t ctx,
overwrite_range_t &overwrite_range,
assert(overwrite_range.is_end_in_mapping(edge_mapping));
}
- auto fut = ObjectDataHandler::base_iertr::now();
+ auto fut = base_iertr::now();
if (((edge & edge_t::LEFT) &&
!overwrite_range.is_begin_aligned(ctx.tm.get_block_size())) ||
((edge & edge_t::RIGHT) &&
// this branch happens when:
// "overwrite.aligned_begin == edge_mapping.get_key() &&
// overwrite.unaligned_begin > edge_mapping.get_key()"
- return ObjectDataHandler::base_iertr::make_ready_future<
+ return base_iertr::make_ready_future<
LBAMapping>(std::move(edge_mapping));
}
} else {
// less than that of the edge_mapping.
return ctx.tm.remove(ctx.t, std::move(edge_mapping)
).handle_error_interruptible(
- ObjectDataHandler::base_iertr::pass_further{},
+ base_iertr::pass_further{},
crimson::ct_error::assert_all{"unexpected error"}
);
}
// that of the edge_mapping, remove the edge_mapping and expand the
// overwrite_range.
// 3. edge_handle_policy_t::REMAP: drop the overlapped part of the edge mapping
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_mapping_on_edge(
context_t ctx,
overwrite_range_t &overwrite_range,
// The first step in a multi-mapping-hole-punching scenario: remap the
// left mapping if it crosses the left edge of the hole's range
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_left_mapping(
context_t ctx,
overwrite_range_t &overwrite_range,
ctx, overwrite_range, overwrite_data,
std::move(left_mapping), edge_t::LEFT, op_type);
}
- return ObjectDataHandler::base_iertr::make_ready_future<
+ return base_iertr::make_ready_future<
LBAMapping>(std::move(left_mapping));
}
// The second step in a multi-mapping-hole-punching scenario: remove
// all the mappings that are strictly inside the hole's range
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_inner_mappings(
context_t ctx,
overwrite_range_t &overwrite_range,
// The last step in the multi-mapping-hole-punching scenario: remap
// the right mapping if it crosses the right edge of the hole's range
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_right_mapping(
context_t ctx,
overwrite_range_t &overwrite_range,
{
if (right_mapping.is_end() ||
overwrite_range.aligned_end <= right_mapping.get_key()) {
- return ObjectDataHandler::base_iertr::make_ready_future<
+ return base_iertr::make_ready_future<
LBAMapping>(std::move(right_mapping));
}
return punch_mapping_on_edge(
}
// punch the hole whose range is within a single pending mapping
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_hole_in_pending_mapping(
context_t ctx,
overwrite_range_t &overwrite_range,
).si_then([ctx, mapping=std::move(mapping)]() mutable {
return ctx.tm.remove(ctx.t, std::move(mapping));
}).handle_error_interruptible(
- ObjectDataHandler::base_iertr::pass_further{},
+ base_iertr::pass_further{},
crimson::ct_error::assert_all{"impossible"}
);
}
-ObjectDataHandler::base_iertr::future<LBAMapping>
+base_iertr::future<LBAMapping>
ObjectDataHandler::punch_multi_mapping_hole(
context_t ctx,
overwrite_range_t &overwrite_range,
}
case edge_handle_policy_t::REMAP:
{
- auto fut = ObjectDataHandler::base_iertr::now();
+ auto fut = base_iertr::now();
edge_t edge = edge_t::NONE;
if (!overwrite_range.is_begin_aligned(ctx.tm.get_block_size())) {
edge = static_cast<edge_t>(edge | edge_t::LEFT);