Bad comparision caused recompression range to exclude left boundary
point. In most cases it makes little difference, but it prevents from:
1) including extent starting at 0
2) including extent at begging of onode segment
Now fixed.
Fixes: https://tracker.ceph.com/issues/71244
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit
acfe527d9bbe3364f9e321ce6e790f93eafe41df)
}
if (left_it != extent_map->extent_map.begin()) {
--left_it; // left_walk points to processes extent
- if (limit_left < left_it->logical_offset) {
+ if (limit_left <= left_it->logical_offset) {
dout(30) << "left maybe expand" << dendl;
has_expanded |= maybe_expand_scan_range(left_it, left, right);
}