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:
Nikolay Volf 2016-10-07 10:03:49 +03:00 committed by Arkadiy Paronyan
parent a618dcaaf0
commit 9b398421ce

View File

@ -270,10 +270,13 @@ pub fn migrate(path: &Path, pruning: Algorithm, compaction_profile: CompactionPr
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()));
// update version file.
update_version(path)
Ok(())
}
/// Old migrations utilities