mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +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 id = task.id;
|
||||||
let uid = match task.index_uid {
|
let uid = match task.index_uid {
|
||||||
Some(uid) => TaskListIdentifier::Index(uid.into_inner()),
|
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 {
|
let kind = match task.content {
|
||||||
TaskContent::DocumentAddition {
|
TaskContent::DocumentAddition {
|
||||||
|
Loading…
Reference in New Issue
Block a user