[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

View File

@ -332,6 +332,7 @@ era::check_superblock(persistent_data::block_manager<>::ptr bm,
try { try {
sb = read_superblock(bm, SUPERBLOCK_LOCATION); sb = read_superblock(bm, SUPERBLOCK_LOCATION);
check_superblock(sb, nr_metadata_blocks, visitor);
} catch (std::exception const &e) { } catch (std::exception const &e) {
@ -341,8 +342,6 @@ era::check_superblock(persistent_data::block_manager<>::ptr bm,
visitor.visit(superblock_corrupt(e.what())); visitor.visit(superblock_corrupt(e.what()));
} }
check_superblock(sb, nr_metadata_blocks, visitor);
} }