[cache_restore/dump] hint_width work.

dump/restore cycle works again.
This commit is contained in:
Joe Thornber
2013-09-26 11:36:01 +01:00
parent bd1a189298
commit bb898eeaad
10 changed files with 43 additions and 14 deletions

View File

@@ -57,6 +57,14 @@ metadata::commit()
commit_superblock();
}
void
metadata::setup_hint_array(size_t width)
{
if (width > 0)
hints_ = hint_array::ptr(
new hint_array(tm_, width));
}
void
metadata::init_superblock()
{
@@ -85,7 +93,9 @@ metadata::create_metadata(block_manager<>::ptr bm)
tm_->set_sm(metadata_sm_);
mappings_ = mapping_array::ptr(new mapping_array(tm_, mapping_array::ref_counter()));
// hints_ = hint_array::ptr(new hint_array(tm_));
// We can't instantiate the hint array yet, since we don't know the
// hint width.
}
void