Run inplace upgrades after version update (#2411)
* Update migration.rs In highly unlikely scenario when the bloom update fails it will at least try again on the next run * proper exchange
This commit is contained in:
parent
a618dcaaf0
commit
9b398421ce
@ -270,10 +270,13 @@ pub fn migrate(path: &Path, pruning: Algorithm, compaction_profile: CompactionPr
|
|||||||
println!("Migration finished");
|
println!("Migration finished");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update version file.
|
||||||
|
try!(update_version(path));
|
||||||
|
|
||||||
|
// run any inplace migrations for the fully upgraded database
|
||||||
try!(run_inplace_upgrades(consolidated_database_path(path).as_path()));
|
try!(run_inplace_upgrades(consolidated_database_path(path).as_path()));
|
||||||
|
|
||||||
// update version file.
|
Ok(())
|
||||||
update_version(path)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Old migrations utilities
|
/// Old migrations utilities
|
||||||
|
Loading…
Reference in New Issue
Block a user