From ab870fbfd49685a94c335261aec92064085ff0f6 Mon Sep 17 00:00:00 2001 From: cheme Date: Mon, 15 Apr 2024 10:52:41 +0200 Subject: [PATCH] loom --- src/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.rs b/src/file.rs index 34c05389..31f079a1 100644 --- a/src/file.rs +++ b/src/file.rs @@ -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()) }