[era_check] If the superblock fails the checksum try other checks.

This commit is contained in:
Joe Thornber 2017-10-05 16:21:17 +01:00
parent 8e2a415bdc
commit f80200d179
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}