From b0e043273725947ca042f3576e62ee46b97a1021 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 27 Mar 2017 08:57:43 -0400 Subject: [PATCH] [cache] dirty root wasn't being packed properly --- caching/superblock.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caching/superblock.cc b/caching/superblock.cc index 0a2d8bb..5281afb 100644 --- a/caching/superblock.cc +++ b/caching/superblock.cc @@ -252,6 +252,9 @@ superblock_traits::pack(superblock const &sb, superblock_disk &disk) disk.read_misses = to_disk(core.read_misses); disk.write_hits = to_disk(core.write_hits); disk.write_misses = to_disk(core.write_misses); + + if (core.version >= 2) + disk.dirty_root = to_disk(*core.dirty_root); } //--------------------------------