diff options
Diffstat (limited to 'src/cache.h')
-rw-r--r-- | src/cache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cache.h b/src/cache.h index a2774ce..455cf1b 100644 --- a/src/cache.h +++ b/src/cache.h | |||
@@ -16,8 +16,6 @@ | |||
16 | 16 | ||
17 | #include "bu/trace.h" | 17 | #include "bu/trace.h" |
18 | 18 | ||
19 | #include "bu/sio.h" | ||
20 | |||
21 | namespace Bu | 19 | namespace Bu |
22 | { | 20 | { |
23 | // template<class keytype, class obtype> | 21 | // template<class keytype, class obtype> |
@@ -242,6 +240,8 @@ namespace Bu | |||
242 | 240 | ||
243 | pCalc->onLoad( pData, k ); | 241 | pCalc->onLoad( pData, k ); |
244 | 242 | ||
243 | pStore->sync(); | ||
244 | |||
245 | return Ptr( this, pData, k ); | 245 | return Ptr( this, pData, k ); |
246 | } | 246 | } |
247 | 247 | ||
@@ -331,6 +331,7 @@ namespace Bu | |||
331 | hEnt.erase( cId ); | 331 | hEnt.erase( cId ); |
332 | 332 | ||
333 | pStore->destroy( pObj, cId ); | 333 | pStore->destroy( pObj, cId ); |
334 | pStore->sync(); | ||
334 | } | 335 | } |
335 | catch( Bu::HashException &e ) { | 336 | catch( Bu::HashException &e ) { |
336 | pCalc->onDestroy( cId ); | 337 | pCalc->onDestroy( cId ); |
@@ -343,6 +344,7 @@ namespace Bu | |||
343 | else | 344 | else |
344 | { | 345 | { |
345 | pStore->destroy( cId ); | 346 | pStore->destroy( cId ); |
347 | pStore->sync(); | ||
346 | } | 348 | } |
347 | } | 349 | } |
348 | } | 350 | } |