Skip to content

Commit 6adc172

Browse files
committed
os/bluestore/recompression: Now able to reach left boundary
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 <[email protected]> (cherry picked from commit acfe527)
1 parent f1107bf commit 6adc172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/bluestore/Compression.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ void Scan::on_write_start(
872872
}
873873
if (left_it != extent_map->extent_map.begin()) {
874874
--left_it; // left_walk points to processes extent
875-
if (limit_left < left_it->logical_offset) {
875+
if (limit_left <= left_it->logical_offset) {
876876
dout(30) << "left maybe expand" << dendl;
877877
has_expanded |= maybe_expand_scan_range(left_it, left, right);
878878
}

0 commit comments

Comments
 (0)