From 51c5bfa4881b5def142092e10dd402fd40e2e712 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 4 May 2010 17:07:07 +0000 Subject: Cache fixes? --- src/cachestorenids.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cachestorenids.h') 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 sync(); } + virtual void destroy( const keytype &key ) + { + int iStream = hId.get( key ); + nStore.deleteStream( iStream ); + hId.erase( key ); + sync(); + } + virtual bool has( const keytype &key ) { return hId.has( key ); -- cgit v1.2.3