From 9b398421ce2f74cf4c5af8f30d2fd5baf1d9fb06 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Fri, 7 Oct 2016 10:03:49 +0300 Subject: [PATCH] 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 --- parity/migration.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parity/migration.rs b/parity/migration.rs index f82eb6d71..2a6a949a6 100644 --- a/parity/migration.rs +++ b/parity/migration.rs @@ -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