Update crates/meilitool/src/upgrade/v1_11.rs

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
Tamo 2024-11-05 15:14:02 +01:00 committed by GitHub
parent e4993aa705
commit 0f74a93346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,6 @@ pub fn v1_10_to_v1_11(db_path: &Path) -> anyhow::Result<()> {
.map(|res| res.map(|(uid, uuid)| (uid.to_owned(), uuid))) .map(|res| res.map(|(uid, uuid)| (uid.to_owned(), uuid)))
.collect(); .collect();
// check that update can take place
for (index_index, result) in indexes.into_iter().enumerate() { for (index_index, result) in indexes.into_iter().enumerate() {
let (uid, uuid) = result?; let (uid, uuid) = result?;
let index_path = db_path.join("indexes").join(uuid.to_string()); let index_path = db_path.join("indexes").join(uuid.to_string());