stop skipping empty tasks when adding documents

This commit is contained in:
Tamo
2024-12-30 17:48:25 +01:00
parent 970a489dcc
commit 33921747b7
3 changed files with 24 additions and 5 deletions

View File

@ -1312,9 +1312,7 @@ impl IndexScheduler {
if let DocumentOperation::Add(content_uuid) = operation {
let content_file = self.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);
}
}