From 3ffc8996935cb752a800399061d6af7050572879 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:47:26 +0300 Subject: [PATCH] Make `madvise_random` compatible with non-Unix OS --- src/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.rs b/src/file.rs index 34c142fa..48a9728e 100644 --- a/src/file.rs +++ b/src/file.rs @@ -51,7 +51,7 @@ pub fn madvise_random(map: &mut memmap2::MmapMut) { } #[cfg(not(unix))] -pub fn madvise_random(_id: TableId, _map: &mut memmap2::MmapMut) {} +pub fn madvise_random(_map: &mut memmap2::MmapMut) {} const GROW_SIZE_BYTES: u64 = 256 * 1024;