[space-maps/disk] Support ignoring broken bitmaps on counting index_store
This commit is contained in:
parent
27ca8cc009
commit
3c49949796
@ -666,9 +666,14 @@ namespace {
|
||||
if (!ie.blocknr_)
|
||||
return;
|
||||
|
||||
block_manager::read_ref rr = tm_.read_lock(ie.blocknr_, bitmap_validator_);
|
||||
if (rr.data())
|
||||
bc_.inc(ie.blocknr_);
|
||||
try {
|
||||
block_manager::read_ref rr = tm_.read_lock(ie.blocknr_, bitmap_validator_);
|
||||
if (rr.data())
|
||||
bc_.inc(ie.blocknr_);
|
||||
} catch (std::exception &e) {
|
||||
if (bc_.stop_on_error())
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user