mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
register and insert dump task in scheduler
This commit is contained in:
parent
737b891a41
commit
2f0625a984
@ -148,7 +148,8 @@ impl TaskQueue {
|
||||
let id = task.id;
|
||||
let uid = match task.index_uid {
|
||||
Some(uid) => TaskListIdentifier::Index(uid.into_inner()),
|
||||
None => unreachable!(),
|
||||
None if matches!(task.content, TaskContent::Dump { .. }) => TaskListIdentifier::Dump,
|
||||
None => unreachable!("invalid task state"),
|
||||
};
|
||||
let kind = match task.content {
|
||||
TaskContent::DocumentAddition {
|
||||
|
Loading…
Reference in New Issue
Block a user