Skip to content

Commit

Permalink
object: fix ranges when iterating over chunks
Browse files Browse the repository at this point in the history
The wrong length was taken when calculating the *chunk* length.
  • Loading branch information
Johannes Wünsche committed Jan 15, 2024
1 parent 91107e7 commit 43d1d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betree/src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ impl<'ds> ObjectHandle<'ds> {
offset: 0,
};
let byte_offset = chunk.as_bytes();
let range = byte_offset..byte_offset + k.len() as u64;
let range = byte_offset..byte_offset + v.len() as u64;
Ok((range, v))
}
Err(e) => Err(e),
Expand Down

0 comments on commit 43d1d69

Please sign in to comment.