From cb87201c8b91196ca4eb20180ba8e5d221584582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 20 Oct 2025 10:42:35 +0200 Subject: [PATCH] Fix dumpless upgrade and do nothing --- crates/milli/src/update/upgrade/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/milli/src/update/upgrade/mod.rs b/crates/milli/src/update/upgrade/mod.rs index fef4fcb71..9550e3d38 100644 --- a/crates/milli/src/update/upgrade/mod.rs +++ b/crates/milli/src/update/upgrade/mod.rs @@ -41,6 +41,7 @@ const UPGRADE_FUNCTIONS: &[&dyn UpgradeIndex] = &[ &ToTargetNoOp { target: (1, 21, 0) }, &ToTargetNoOp { target: (1, 22, 0) }, &ToTargetNoOp { target: (1, 23, 0) }, + &ToTargetNoOp { target: (1, 24, 0) }, // 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. &ToCurrentNoOp {}, @@ -75,6 +76,7 @@ const fn start(from: (u32, u32, u32)) -> Option { (1, 21, _) => function_index!(11), (1, 22, _) => function_index!(12), (1, 23, _) => function_index!(13), + (1, 24, _) => function_index!(14), // We deliberately don't add a placeholder with (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) here to force manually // considering dumpless upgrade. (_major, _minor, _patch) => return None,