From 7d64e8dbd33cf4d54a4c427b110e8ca02a9bf604 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 20 Nov 2024 14:22:30 +0100 Subject: [PATCH] Fix Windows compilation --- crates/milli/src/update/new/indexer/document_operation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/milli/src/update/new/indexer/document_operation.rs b/crates/milli/src/update/new/indexer/document_operation.rs index 7be2c88f4..7e3990a16 100644 --- a/crates/milli/src/update/new/indexer/document_operation.rs +++ b/crates/milli/src/update/new/indexer/document_operation.rs @@ -29,8 +29,9 @@ impl<'pl> DocumentOperation<'pl> { } /// TODO please give me a type - /// The payload is expected to be in the grenad format + /// The payload is expected to be in the NDJSON format pub fn add_documents(&mut self, payload: &'pl Mmap) -> Result<()> { + #[cfg(unix)] payload.advise(memmap2::Advice::Sequential)?; self.operations.push(Payload::Addition(&payload[..])); Ok(())