aboutsummaryrefslogtreecommitdiff
path: root/src/cachestorenids.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-04 17:07:07 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-04 17:07:07 +0000
commit51c5bfa4881b5def142092e10dd402fd40e2e712 (patch)
tree787ee6a56c14a51e92d8097bce87534ebbae4ec1 /src/cachestorenids.h
parent49af4dce0fdc569b623140ca5a711988281835d5 (diff)
downloadlibbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.gz
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.bz2
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.xz
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.zip
Cache fixes?
Diffstat (limited to 'src/cachestorenids.h')
-rw-r--r--src/cachestorenids.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cachestorenids.h b/src/cachestorenids.h
index f413bd0..293f521 100644
--- a/src/cachestorenids.h
+++ b/src/cachestorenids.h
@@ -125,6 +125,14 @@ namespace Bu
125 sync(); 125 sync();
126 } 126 }
127 127
128 virtual void destroy( const keytype &key )
129 {
130 int iStream = hId.get( key );
131 nStore.deleteStream( iStream );
132 hId.erase( key );
133 sync();
134 }
135
128 virtual bool has( const keytype &key ) 136 virtual bool has( const keytype &key )
129 { 137 {
130 return hId.has( key ); 138 return hId.has( key );