write the version of the index while upgrading it

This commit is contained in:
Tamo 2025-01-23 11:47:00 +01:00 committed by Louis Dureuil
parent 8f65f35de9
commit 787472453d
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,6 @@ use meilisearch_types::milli::update::IndexDocumentsMethod::*;
use meilisearch_types::milli::update::Setting;
use meilisearch_types::tasks::Kind;
use meilisearch_types::tasks::KindWithContent;
use roaring::RoaringBitmap;
use crate::insta_snapshot::snapshot_index_scheduler;
use crate::test_utils::Breakpoint::*;

View File

@ -60,6 +60,7 @@ pub fn upgrade(
upgrade_path.len() as u32,
));
regenerate_stats |= upgrade.upgrade(wtxn, index, from, progress.clone())?;
index.put_version(wtxn, target)?;
current_version = target;
}