aboutsummaryrefslogtreecommitdiff
path: root/src/cachestoremyriad.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-04-30 05:44:39 +0000
committerMike Buland <eichlan@xagasoft.com>2010-04-30 05:44:39 +0000
commitdaa25c26e99eb62a4ce499f8079b15734987ac0d (patch)
tree7b76a052f0bb1f5d72957838d12e0c49dfd7c093 /src/cachestoremyriad.h
parent1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c (diff)
downloadlibbu++-daa25c26e99eb62a4ce499f8079b15734987ac0d.tar.gz
libbu++-daa25c26e99eb62a4ce499f8079b15734987ac0d.tar.bz2
libbu++-daa25c26e99eb62a4ce499f8079b15734987ac0d.tar.xz
libbu++-daa25c26e99eb62a4ce499f8079b15734987ac0d.zip
Many minor fixes to the caching system, membuf, and others, but mainly some
important fixes for real-life use of the system.
Diffstat (limited to 'src/cachestoremyriad.h')
-rw-r--r--src/cachestoremyriad.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cachestoremyriad.h b/src/cachestoremyriad.h
index e5a10eb..3ae3ec8 100644
--- a/src/cachestoremyriad.h
+++ b/src/cachestoremyriad.h
@@ -88,9 +88,6 @@ namespace Bu
88 88
89 virtual void unload( obtype *pObj, const keytype &key ) 89 virtual void unload( obtype *pObj, const keytype &key )
90 { 90 {
91 int iStream = hId.get( key );
92 MyriadStream ns = mStore.openStream( iStream );
93 __cacheStoreMyriadStore<keytype, obtype>( ns, *pObj, key );
94 delete pObj; 91 delete pObj;
95 } 92 }
96 93
@@ -109,8 +106,6 @@ namespace Bu
109 MyriadStream ns = mStore.openStream( 1 ); 106 MyriadStream ns = mStore.openStream( 1 );
110 Bu::Archive ar( ns, Bu::Archive::save ); 107 Bu::Archive ar( ns, Bu::Archive::save );
111 ar << hId; 108 ar << hId;
112
113 mStore.sync();
114 } 109 }
115 110
116 virtual void sync( obtype *pSrc, const keytype &key ) 111 virtual void sync( obtype *pSrc, const keytype &key )