A non-empty byte range is required by both last_period_off calculation
and Striper::file_to_extents().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
6b5f0088d799a72a840fae685b44b0f31eee6be8)
template <typename I>
std::pair<uint64_t, uint64_t> DiffIterate<I>::calc_object_diff_range() {
+ ceph_assert(m_length > 0);
uint64_t period = m_image_ctx.get_stripe_period();
uint64_t first_period_off = round_down_to(m_offset, period);
uint64_t last_period_off = round_down_to(m_offset + m_length - 1, period);