Introduce the ProcessingTasks struct

This commit is contained in:
Kerollmops 2022-10-17 13:54:35 +02:00 committed by Clément Renault
parent 47168c613d
commit b8803781dc
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 54 additions and 15 deletions

View file

@ -939,7 +939,7 @@ impl IndexScheduler {
// 1. Remove from this list the tasks that we are not allowed to delete
let enqueued_tasks = self.get_status(wtxn, Status::Enqueued)?;
let processing_tasks = &self.processing_tasks.read().unwrap().1;
let processing_tasks = &self.processing_tasks.read().unwrap().processing.clone();
let all_task_ids = self.all_task_ids(&wtxn)?;
let mut to_delete_tasks = all_task_ids & matched_tasks;