diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-04-30 05:44:39 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-04-30 05:44:39 +0000 |
commit | daa25c26e99eb62a4ce499f8079b15734987ac0d (patch) | |
tree | 7b76a052f0bb1f5d72957838d12e0c49dfd7c093 /src/cachestorenids.h | |
parent | 1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c (diff) | |
download | libbu++-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/cachestorenids.h')
-rw-r--r-- | src/cachestorenids.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cachestorenids.h b/src/cachestorenids.h index c9e8fd1..54129b0 100644 --- a/src/cachestorenids.h +++ b/src/cachestorenids.h | |||
@@ -89,9 +89,6 @@ namespace Bu | |||
89 | 89 | ||
90 | virtual void unload( obtype *pObj, const keytype &key ) | 90 | virtual void unload( obtype *pObj, const keytype &key ) |
91 | { | 91 | { |
92 | int iStream = hId.get( key ); | ||
93 | NidsStream ns = nStore.openStream( iStream ); | ||
94 | __cacheStoreNidsStore<keytype, obtype>( ns, *pObj, key ); | ||
95 | delete pObj; | 92 | delete pObj; |
96 | } | 93 | } |
97 | 94 | ||
@@ -110,8 +107,6 @@ namespace Bu | |||
110 | NidsStream ns = nStore.openStream( 0 ); | 107 | NidsStream ns = nStore.openStream( 0 ); |
111 | Bu::Archive ar( ns, Bu::Archive::save ); | 108 | Bu::Archive ar( ns, Bu::Archive::save ); |
112 | ar << hId; | 109 | ar << hId; |
113 | |||
114 | nStore.sync(); | ||
115 | } | 110 | } |
116 | 111 | ||
117 | virtual void sync( obtype *pSrc, const keytype &key ) | 112 | virtual void sync( obtype *pSrc, const keytype &key ) |