From f537334507bb357330753398868f040b8e9ff9d3 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:17:44 +0300 Subject: [PATCH] Make `madvise_random` compatible with non-Unix OS (#221) --- 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;