Make sure that we do not batch tasks from different indexes

This commit is contained in:
Kerollmops
2022-10-13 11:07:36 +02:00
committed by Clément Renault
parent b029369653
commit e4d461ecba
3 changed files with 7 additions and 6 deletions

View File

@ -276,7 +276,7 @@ impl IndexScheduler {
if let Some(index) = query.index_uid {
let mut index_tasks = RoaringBitmap::new();
for index in index {
index_tasks |= self.get_index(&rtxn, &index)?;
index_tasks |= self.index_tasks(&rtxn, &index)?;
}
tasks &= index_tasks;
}