[space-maps/core] rewrite the core space map to use less memory.
This commit is contained in:
@@ -59,7 +59,7 @@ persistent_data::open_tm(block_manager::ptr bm, block_address superblock_locatio
|
||||
if (!nr_blocks)
|
||||
throw runtime_error("Metadata is not large enough for superblock.");
|
||||
|
||||
space_map::ptr sm(new core_map(nr_blocks));
|
||||
space_map::ptr sm{create_core_map(nr_blocks)};
|
||||
sm->inc(superblock_location);
|
||||
transaction_manager::ptr tm(new transaction_manager(bm, sm));
|
||||
return tm;
|
||||
|
||||
Reference in New Issue
Block a user