remove the empty progress made for the upgrade database

This commit is contained in:
Tamo 2025-01-22 16:22:57 +01:00
parent 8acdf0e1dd
commit 27d04d7932
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
2 changed files with 0 additions and 9 deletions

View File

@ -127,12 +127,6 @@ make_enum_progress! {
} }
} }
make_enum_progress! {
pub enum UpgradeDatabaseProgress {
EnsuringCorrectnessOfTheSwap,
}
}
make_enum_progress! { make_enum_progress! {
pub enum InnerSwappingTwoIndexes { pub enum InnerSwappingTwoIndexes {
RetrieveTheTasks, RetrieveTheTasks,

View File

@ -1,13 +1,10 @@
use meilisearch_types::milli; use meilisearch_types::milli;
use meilisearch_types::milli::progress::{Progress, VariableNameStep}; use meilisearch_types::milli::progress::{Progress, VariableNameStep};
use crate::processing::UpgradeDatabaseProgress;
use crate::{Error, IndexScheduler, Result}; use crate::{Error, IndexScheduler, Result};
impl IndexScheduler { impl IndexScheduler {
pub(super) fn process_upgrade(&self, progress: Progress) -> Result<()> { pub(super) fn process_upgrade(&self, progress: Progress) -> Result<()> {
progress.update_progress(UpgradeDatabaseProgress::EnsuringCorrectnessOfTheSwap);
#[cfg(test)] #[cfg(test)]
self.maybe_fail(crate::test_utils::FailureLocation::ProcessUpgrade)?; self.maybe_fail(crate::test_utils::FailureLocation::ProcessUpgrade)?;