Fix Windows compilation

This commit is contained in:
Louis Dureuil 2024-11-20 14:22:30 +01:00
parent cae8c89467
commit 7d64e8dbd3
No known key found for this signature in database

View File

@ -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(())