mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
add the task to the index db in the register task
This commit is contained in:
parent
ed745591e1
commit
705af94fd7
3 changed files with 84 additions and 33 deletions
|
@ -110,6 +110,15 @@ impl IndexScheduler {
|
|||
self.all_tasks
|
||||
.append(&mut wtxn, &BEU32::new(task_id), &task)?;
|
||||
|
||||
if let Some(indexes) = task.indexes() {
|
||||
for index in indexes {
|
||||
self.update_index(&mut wtxn, index, |mut bitmap| {
|
||||
bitmap.insert(task_id);
|
||||
bitmap
|
||||
})?;
|
||||
}
|
||||
}
|
||||
|
||||
self.update_status(&mut wtxn, Status::Enqueued, |mut bitmap| {
|
||||
bitmap.insert(task_id);
|
||||
bitmap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue