Add debug assertion

This commit is contained in:
Mubelotix
2025-08-08 11:25:06 +02:00
parent ff68802ffc
commit 31c4215ad2

View File

@ -127,6 +127,12 @@ impl IndexScheduler {
_ => unreachable!(), _ => unreachable!(),
} }
} }
debug_assert!(
deleted_tasks.is_empty(),
"There should be no tasks left to delete after processing the batch"
);
Ok((tasks, ProcessBatchInfo::default())) Ok((tasks, ProcessBatchInfo::default()))
} }
Batch::SnapshotCreation(tasks) => self Batch::SnapshotCreation(tasks) => self