Skip to content

Commit

Permalink
Make madvise_random compatible with non-Unix OS (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilsan committed Sep 5, 2023
1 parent 8eae5d3 commit f537334
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 @@ -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;

Expand Down

0 comments on commit f537334

Please sign in to comment.