diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-04-04 22:04:56 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-04-04 22:04:56 +0000 |
commit | f837e7ef09bab37d2f896f381f5f956c824633c5 (patch) | |
tree | e370d52082d96017cba697169e3d597b2d626e6e /src | |
parent | f90231fc35f3405a276da0debfb7d83fffd0c44a (diff) | |
download | libbu++-f837e7ef09bab37d2f896f381f5f956c824633c5.tar.gz libbu++-f837e7ef09bab37d2f896f381f5f956c824633c5.tar.bz2 libbu++-f837e7ef09bab37d2f896f381f5f956c824633c5.tar.xz libbu++-f837e7ef09bab37d2f896f381f5f956c824633c5.zip |
Minor tweak to the cache and cachestoremyriad, fixing a strange corner case
in the cache system.
Diffstat (limited to 'src')
-rw-r--r-- | src/cache.h | 2 | ||||
-rw-r--r-- | src/cachestoremyriad.h | 1 |
2 files changed, 3 insertions, 0 deletions
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 @@ | |||
16 | 16 | ||
17 | #include "bu/trace.h" | 17 | #include "bu/trace.h" |
18 | 18 | ||
19 | #include "bu/sio.h" | ||
20 | |||
19 | namespace Bu | 21 | namespace Bu |
20 | { | 22 | { |
21 | // template<class keytype, class obtype> | 23 | // template<class keytype, class obtype> |
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 | |||
98 | MyriadStream ns = mStore.openStream( iStream ); | 98 | MyriadStream ns = mStore.openStream( iStream ); |
99 | __cacheStoreMyriadStore<keytype, obtype>( ns, *pSrc, key ); | 99 | __cacheStoreMyriadStore<keytype, obtype>( ns, *pSrc, key ); |
100 | ns.setSize( ns.tell() ); | 100 | ns.setSize( ns.tell() ); |
101 | sync(); | ||
101 | return key; | 102 | return key; |
102 | } | 103 | } |
103 | 104 | ||