mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Add debug assertion
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user