Skip to content

Commit

Permalink
loom
Browse files Browse the repository at this point in the history
  • Loading branch information
cheme committed Apr 15, 2024
1 parent 25b1c1b commit ab870fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl TableFile {
pub fn slice_at(&self, offset: u64, len: usize) -> MappedBytesGuard {
let (offset, file_index) = offset_to_file_index(offset, self.max_size);
let offset = offset as usize;
let map = self.map.read();
let map = self.maps.read();
let (map, _) = map.get(file_index).unwrap();
MappedBytesGuard::new(map[offset..offset + len].to_vec())
}
Expand Down

0 comments on commit ab870fb

Please sign in to comment.