mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Fix Windows compilation
This commit is contained in:
parent
cae8c89467
commit
7d64e8dbd3
@ -29,8 +29,9 @@ impl<'pl> DocumentOperation<'pl> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// TODO please give me a type
|
/// 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<()> {
|
pub fn add_documents(&mut self, payload: &'pl Mmap) -> Result<()> {
|
||||||
|
#[cfg(unix)]
|
||||||
payload.advise(memmap2::Advice::Sequential)?;
|
payload.advise(memmap2::Advice::Sequential)?;
|
||||||
self.operations.push(Payload::Addition(&payload[..]));
|
self.operations.push(Payload::Addition(&payload[..]));
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user