stop skipping empty tasks when adding documents

This commit is contained in:
Tamo 2024-12-30 17:48:25 +01:00 committed by Louis Dureuil
parent 08c332980b
commit 647a10bf18
No known key found for this signature in database
3 changed files with 24 additions and 4 deletions

View file

@ -78,9 +78,7 @@ impl IndexScheduler {
if let DocumentOperation::Add(content_uuid) = operation {
let content_file = self.queue.file_store.get_update(*content_uuid)?;
let mmap = unsafe { memmap2::Mmap::map(&content_file)? };
if !mmap.is_empty() {
content_files.push(mmap);
}
content_files.push(mmap);
}
}