[thin-provisioning] Add a new constructor for the metadata class
This one takes a superblock. Used when repairing.
This commit is contained in:
@@ -134,6 +134,13 @@ metadata::metadata(block_manager<>::ptr bm,
|
||||
open_btrees();
|
||||
}
|
||||
|
||||
metadata::metadata(block_manager<>::ptr bm, superblock_detail::superblock const &sb)
|
||||
{
|
||||
tm_ = open_tm(bm, SUPERBLOCK_LOCATION);
|
||||
sb_ = sb;
|
||||
open_btrees();
|
||||
}
|
||||
|
||||
void
|
||||
metadata::commit()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user