mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
force dumpless upgrade to recompute stats
This commit is contained in:
parent
41203f0931
commit
bd27fe7d02
3 changed files with 39 additions and 5 deletions
|
@ -32,9 +32,9 @@ impl UpgradeIndex for V1_12_To_V1_12_3 {
|
|||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub(super) struct V1_12_3_To_Current();
|
||||
pub(super) struct V1_12_3_To_V1_13_0 {}
|
||||
|
||||
impl UpgradeIndex for V1_12_3_To_Current {
|
||||
impl UpgradeIndex for V1_12_3_To_V1_13_0 {
|
||||
fn upgrade(
|
||||
&self,
|
||||
_wtxn: &mut RwTxn,
|
||||
|
@ -42,7 +42,8 @@ impl UpgradeIndex for V1_12_3_To_Current {
|
|||
_original: (u32, u32, u32),
|
||||
_progress: Progress,
|
||||
) -> Result<bool> {
|
||||
Ok(false)
|
||||
// recompute the indexes stats
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
fn target_version(&self) -> (u32, u32, u32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue