diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-05-04 17:07:07 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-04 17:07:07 +0000 |
| commit | 51c5bfa4881b5def142092e10dd402fd40e2e712 (patch) | |
| tree | 787ee6a56c14a51e92d8097bce87534ebbae4ec1 /src/cachestorenids.h | |
| parent | 49af4dce0fdc569b623140ca5a711988281835d5 (diff) | |
| download | libbu++-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.h | 8 |
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 ); |
