From 27d04d793228730559f852435d9643899ec82d75 Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 22 Jan 2025 16:22:57 +0100 Subject: [PATCH] remove the empty progress made for the upgrade database --- crates/index-scheduler/src/processing.rs | 6 ------ crates/index-scheduler/src/scheduler/process_upgrade/mod.rs | 3 --- 2 files changed, 9 deletions(-) diff --git a/crates/index-scheduler/src/processing.rs b/crates/index-scheduler/src/processing.rs index 4073611ea..58f01c770 100644 --- a/crates/index-scheduler/src/processing.rs +++ b/crates/index-scheduler/src/processing.rs @@ -127,12 +127,6 @@ make_enum_progress! { } } -make_enum_progress! { - pub enum UpgradeDatabaseProgress { - EnsuringCorrectnessOfTheSwap, - } -} - make_enum_progress! { pub enum InnerSwappingTwoIndexes { RetrieveTheTasks, diff --git a/crates/index-scheduler/src/scheduler/process_upgrade/mod.rs b/crates/index-scheduler/src/scheduler/process_upgrade/mod.rs index 78ea0ba1b..1195f14ba 100644 --- a/crates/index-scheduler/src/scheduler/process_upgrade/mod.rs +++ b/crates/index-scheduler/src/scheduler/process_upgrade/mod.rs @@ -1,13 +1,10 @@ use meilisearch_types::milli; use meilisearch_types::milli::progress::{Progress, VariableNameStep}; -use crate::processing::UpgradeDatabaseProgress; use crate::{Error, IndexScheduler, Result}; impl IndexScheduler { pub(super) fn process_upgrade(&self, progress: Progress) -> Result<()> { - progress.update_progress(UpgradeDatabaseProgress::EnsuringCorrectnessOfTheSwap); - #[cfg(test)] self.maybe_fail(crate::test_utils::FailureLocation::ProcessUpgrade)?;