From 8af2f0cb1fc142fc3ad18a0d2d5ee039e9348db4 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 10 Oct 2013 11:26:55 +0100 Subject: [PATCH] [caching/metadata] setup the hint array when reopening metadata --- caching/metadata.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caching/metadata.cc b/caching/metadata.cc index 8ffe533..49e7a4d 100644 --- a/caching/metadata.cc +++ b/caching/metadata.cc @@ -107,6 +107,11 @@ metadata::open_metadata(block_manager<>::ptr bm) mapping_array::ref_counter(), sb_.mapping_root, sb_.cache_blocks)); + + if (sb_.hint_root) + hints_ = hint_array::ptr( + new hint_array(tm_, sb_.policy_hint_size, + sb_.hint_root, sb_.cache_blocks)); } void