Skip to content

Commit b32030b

Browse files
committed
got the check backwards
Signed-off-by: Daniel King <dan@spiraldb.com>
1 parent 82af0e4 commit b32030b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vortex-file/src/read/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl CoalescedRequest {
160160
req,
161161
)
162162
}
163-
if req.offset.saturating_add(req.length as u64) <= range.end {
163+
if req.offset.saturating_add(req.length as u64) > range.end {
164164
vortex_bail!(
165165
"CoalescedRequest: sub-request for length {} at file offset {} exceeds the coalesced range: {}..{}. {:?}",
166166
req.length,

0 commit comments

Comments
 (0)