mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix number of deleted tasks details after duplicate task deletion
This commit is contained in:
parent
8defad6c38
commit
8954b1bd1d
4 changed files with 20 additions and 21 deletions
|
@ -262,18 +262,7 @@ impl IndexScheduler {
|
|||
let rtxn = self.env.read_txn()?;
|
||||
|
||||
// This is the list of all the tasks.
|
||||
let mut tasks = {
|
||||
let mut all_tasks = RoaringBitmap::new();
|
||||
for status in [
|
||||
Status::Enqueued,
|
||||
Status::Processing,
|
||||
Status::Succeeded,
|
||||
Status::Failed,
|
||||
] {
|
||||
all_tasks |= self.get_status(&rtxn, status)?;
|
||||
}
|
||||
all_tasks
|
||||
};
|
||||
let mut tasks = self.all_task_ids(&rtxn)?;
|
||||
|
||||
if let Some(uids) = &query.uid {
|
||||
tasks &= RoaringBitmap::from_iter(uids);
|
||||
|
@ -827,8 +816,6 @@ mod tests {
|
|||
for _ in 0..2 {
|
||||
handle.wait_till(Breakpoint::AfterProcessing);
|
||||
}
|
||||
// The three deletion tasks are marked as succeeded, and all their details say that one
|
||||
// task has been deleted. Is this the correct behaviour? Probably not!
|
||||
snapshot!(snapshot_index_scheduler(&index_scheduler), name: "task_deletion_processed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue