From: Adam Kupczyk Date: Wed, 7 May 2025 08:25:19 +0000 (+0000) Subject: os/bluestore/recompression: Now able to reach left boundary X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6adc172f92bbeec42493ed133e90ddc78c39142f;p=ceph.git 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 (cherry picked from commit acfe527d9bbe3364f9e321ce6e790f93eafe41df) --- diff --git a/src/os/bluestore/Compression.cc b/src/os/bluestore/Compression.cc index 41684cb630d34..ca3befe3cf190 100644 --- a/src/os/bluestore/Compression.cc +++ b/src/os/bluestore/Compression.cc @@ -872,7 +872,7 @@ void Scan::on_write_start( } 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); }