From f837e7ef09bab37d2f896f381f5f956c824633c5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 4 Apr 2011 22:04:56 +0000 Subject: Minor tweak to the cache and cachestoremyriad, fixing a strange corner case in the cache system. --- src/cache.h | 2 ++ src/cachestoremyriad.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/cache.h b/src/cache.h index d4b1900..a2774ce 100644 --- a/src/cache.h +++ b/src/cache.h @@ -16,6 +16,8 @@ #include "bu/trace.h" +#include "bu/sio.h" + namespace Bu { // template diff --git a/src/cachestoremyriad.h b/src/cachestoremyriad.h index e632a82..e36506e 100644 --- a/src/cachestoremyriad.h +++ b/src/cachestoremyriad.h @@ -98,6 +98,7 @@ namespace Bu MyriadStream ns = mStore.openStream( iStream ); __cacheStoreMyriadStore( ns, *pSrc, key ); ns.setSize( ns.tell() ); + sync(); return key; } -- cgit v1.2.3