mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
add a large test importing a data.ms from the v1.12.0
This commit is contained in:
parent
102681e384
commit
0cc25c7e4c
43 changed files with 4675 additions and 11 deletions
|
@ -8,8 +8,10 @@ pub fn upgrade(index: &Index, progress: Progress) -> Result<()> {
|
|||
[(v1_12_to_v1_13 as fn(&Index, Progress) -> Result<()>, "Upgrading from v1.12 to v1.13")];
|
||||
|
||||
let start = match from {
|
||||
// If there was no version it means we're coming from the base version specified by the index-scheduler
|
||||
// If there was no version it means we're coming from the v1.12
|
||||
None | Some((1, 12, _)) => 0,
|
||||
// We must handle the current version in the match because in case of a failure some index may have been upgraded but not other.
|
||||
Some((1, 13, _)) => return Ok(()),
|
||||
Some((major, minor, patch)) => {
|
||||
return Err(InternalError::CannotUpgradeToVersion(major, minor, patch).into())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue