mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-17 00:56:27 +00:00
Add a no-op when upgrading the index
This commit is contained in:
@@ -40,6 +40,7 @@ const UPGRADE_FUNCTIONS: &[&dyn UpgradeIndex] = &[
|
|||||||
&ToTargetNoOp { target: (1, 20, 0) },
|
&ToTargetNoOp { target: (1, 20, 0) },
|
||||||
&ToTargetNoOp { target: (1, 21, 0) },
|
&ToTargetNoOp { target: (1, 21, 0) },
|
||||||
&ToTargetNoOp { target: (1, 22, 0) },
|
&ToTargetNoOp { target: (1, 22, 0) },
|
||||||
|
&ToTargetNoOp { target: (1, 23, 0) },
|
||||||
// This is the last upgrade function, it will be called when the index is up to date.
|
// This is the last upgrade function, it will be called when the index is up to date.
|
||||||
// any other upgrade function should be added before this one.
|
// any other upgrade function should be added before this one.
|
||||||
&ToCurrentNoOp {},
|
&ToCurrentNoOp {},
|
||||||
@@ -73,6 +74,7 @@ const fn start(from: (u32, u32, u32)) -> Option<usize> {
|
|||||||
(1, 20, _) => function_index!(10),
|
(1, 20, _) => function_index!(10),
|
||||||
(1, 21, _) => function_index!(11),
|
(1, 21, _) => function_index!(11),
|
||||||
(1, 22, _) => function_index!(12),
|
(1, 22, _) => function_index!(12),
|
||||||
|
(1, 23, _) => function_index!(13),
|
||||||
// We deliberately don't add a placeholder with (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) here to force manually
|
// We deliberately don't add a placeholder with (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) here to force manually
|
||||||
// considering dumpless upgrade.
|
// considering dumpless upgrade.
|
||||||
(_major, _minor, _patch) => return None,
|
(_major, _minor, _patch) => return None,
|
||||||
|
Reference in New Issue
Block a user