for (auto &&extent: i.second.buffer_updates) {
using BufferUpdate = PGTransaction::ObjectOperation::BufferUpdate;
if (boost::get<BufferUpdate::CloneRange>(&(extent.get_val()))) {
- assert(
+ ceph_assert(
0 ==
"CloneRange is not allowed, do_op should have returned ENOTSUPP");
}
}
if (head_start != head_finish &&
head_start < orig_size) {
- assert(head_finish <= orig_size);
- assert(head_finish - head_start == sinfo.get_stripe_width());
+ ceph_assert(head_finish <= orig_size);
+ ceph_assert(head_finish - head_start == sinfo.get_stripe_width());
ldpp_dout(dpp, 20) << __func__ << ": reading partial head stripe "
<< head_start << "~" << sinfo.get_stripe_width()
<< dendl;
if (tail_start != tail_finish &&
(head_start == head_finish || tail_start != head_start) &&
tail_start < orig_size) {
- assert(tail_finish <= orig_size);
- assert(tail_finish - tail_start == sinfo.get_stripe_width());
+ ceph_assert(tail_finish <= orig_size);
+ ceph_assert(tail_finish - tail_start == sinfo.get_stripe_width());
ldpp_dout(dpp, 20) << __func__ << ": reading partial tail stripe "
<< tail_start << "~" << sinfo.get_stripe_width()
<< dendl;
}
if (head_start != tail_finish) {
- assert(
+ ceph_assert(
sinfo.logical_offset_is_stripe_aligned(
tail_finish - head_start)
);
if (tail_finish > projected_size)
projected_size = tail_finish;
} else {
- assert(tail_finish <= projected_size);
+ ceph_assert(tail_finish <= projected_size);
}
}
* to_read should have an entry for i.first iff it isn't empty
* and if we are reading from i.first, we can't be renaming or
* cloning it */
- assert(plan.to_read.count(i.first) == 0 ||
+ ceph_assert(plan.to_read.count(i.first) == 0 ||
(!plan.to_read.at(i.first).empty() &&
!i.second.has_source()));
});
WritePlan &plan,
ErasureCodeInterfaceRef &ecimpl,
pg_t pgid,
- bool legacy_log_entries,
const ECUtil::stripe_info_t &sinfo,
const map<hobject_t,extent_map> &partial_extents,
vector<pg_log_entry_t> &entries,