mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Don't try to delete a document that is not in the database
This commit is contained in:
parent
2544bc1416
commit
87610a5f98
@ -223,6 +223,7 @@ pub fn grenad_obkv_into_chunks<R: io::Read + io::Seek>(
|
||||
);
|
||||
|
||||
while let Some((document_id, obkv)) = cursor.move_on_next()? {
|
||||
if !obkv.is_empty() {
|
||||
obkv_documents.insert(document_id, obkv)?;
|
||||
current_chunk_size += document_id.len() as u64 + obkv.len() as u64;
|
||||
|
||||
@ -230,6 +231,7 @@ pub fn grenad_obkv_into_chunks<R: io::Read + io::Seek>(
|
||||
return writer_into_reader(obkv_documents).map(Some);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
continue_reading = false;
|
||||
writer_into_reader(obkv_documents).map(Some)
|
||||
|
Loading…
Reference in New Issue
Block a user