summaryrefslogtreecommitdiff
path: root/src/cachestorenids.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cachestorenids.h')
-rw-r--r--src/cachestorenids.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cachestorenids.h b/src/cachestorenids.h
index bd0fcc7..9288008 100644
--- a/src/cachestorenids.h
+++ b/src/cachestorenids.h
@@ -48,12 +48,6 @@ namespace Bu
48 NidsStream ns = nStore.openStream( 0 ); 48 NidsStream ns = nStore.openStream( 0 );
49 Bu::Archive ar( ns, Bu::Archive::save ); 49 Bu::Archive ar( ns, Bu::Archive::save );
50 ar << hId; 50 ar << hId;
51
52 Bu::FString sName;
53 sName.format("hash-%d.%02d", time( NULL ), iCnt++ );
54 Bu::File sTmp( sName, Bu::File::Write|Bu::File::Create );
55 Bu::Archive artmp( sTmp, Bu::Archive::save );
56 artmp << hId;
57 } 51 }
58 52
59 virtual obtype *load( const keytype &key ) 53 virtual obtype *load( const keytype &key )
@@ -80,7 +74,6 @@ namespace Bu
80 keytype key = __cacheGetKey<obtype,keytype>( pSrc ); 74 keytype key = __cacheGetKey<obtype,keytype>( pSrc );
81 int iStream = nStore.createStream(); 75 int iStream = nStore.createStream();
82 hId.insert( key, iStream ); 76 hId.insert( key, iStream );
83 printf("Creating stream: %d\n", iStream );
84 NidsStream ns = nStore.openStream( iStream ); 77 NidsStream ns = nStore.openStream( iStream );
85 Bu::Archive ar( ns, Bu::Archive::save ); 78 Bu::Archive ar( ns, Bu::Archive::save );
86 obtype *pOb = new obtype(); 79 obtype *pOb = new obtype();