From f80200d1791fe06e3965345ddfe2ffc99abf39e2 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 5 Oct 2017 16:21:17 +0100 Subject: [PATCH] [era_check] If the superblock fails the checksum try other checks. --- era/superblock.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/era/superblock.cc b/era/superblock.cc index 7b10d83..53b5678 100644 --- a/era/superblock.cc +++ b/era/superblock.cc @@ -332,6 +332,7 @@ era::check_superblock(persistent_data::block_manager<>::ptr bm, try { sb = read_superblock(bm, SUPERBLOCK_LOCATION); + check_superblock(sb, nr_metadata_blocks, visitor); } catch (std::exception const &e) { @@ -341,8 +342,6 @@ era::check_superblock(persistent_data::block_manager<>::ptr bm, visitor.visit(superblock_corrupt(e.what())); } - - check_superblock(sb, nr_metadata_blocks, visitor); }