diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index 9961ca286..fbc199231 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -875,7 +875,6 @@ impl IndexScheduler { } // 2. Get the task set for index = name that appeared before the index swap task - let mut index_lhs_task_ids = self.index_tasks(wtxn, lhs)?; index_lhs_task_ids.remove_range(task_id..); let mut index_rhs_task_ids = self.index_tasks(wtxn, rhs)?;