mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
fix dump priority in scheduler
This commit is contained in:
parent
6b2016b350
commit
f58507379a
@ -110,8 +110,8 @@ impl Ord for TaskList {
|
|||||||
(Some(lhs), Some(rhs)) => lhs.cmp(rhs),
|
(Some(lhs), Some(rhs)) => lhs.cmp(rhs),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(TaskListIdentifier::Index(_), TaskListIdentifier::Dump) => Ordering::Greater,
|
(TaskListIdentifier::Index(_), TaskListIdentifier::Dump) => Ordering::Less,
|
||||||
(TaskListIdentifier::Dump, TaskListIdentifier::Index(_)) => Ordering::Less,
|
(TaskListIdentifier::Dump, TaskListIdentifier::Index(_)) => Ordering::Greater,
|
||||||
(TaskListIdentifier::Dump, TaskListIdentifier::Dump) => {
|
(TaskListIdentifier::Dump, TaskListIdentifier::Dump) => {
|
||||||
unreachable!("There should be only one Dump task list")
|
unreachable!("There should be only one Dump task list")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user