[era_check] If the superblock fails the checksum try other checks.
This commit is contained in:
parent
8e2a415bdc
commit
f80200d179
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user