From 6c066b6bbd4a44ae7c5874abf6bd3a3e04f76b88 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 6 Nov 2024 16:45:09 -0800 Subject: Tests are back, minor fixes. There is a cache tracking bug exposed in cachedel test, it is unclear if this is a regression yet. --- src/unstable/myriadcache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/unstable') diff --git a/src/unstable/myriadcache.h b/src/unstable/myriadcache.h index f71f9b5..289ab05 100644 --- a/src/unstable/myriadcache.h +++ b/src/unstable/myriadcache.h @@ -108,13 +108,13 @@ namespace Bu const keytype &k ) { - Bu::MyriadStream ms = mStore.openStream( hIndex.get( k ) ); + Bu::MyriadStream ms = mStore.open( hIndex.get( k ), Bu::Myriad::Read ); return _cacheObjectLoad( initObj, k, ms ); } virtual void _save( const obtype *o ) { - Bu::MyriadStream ms = mStore.openStream( hIndex.get( o->getKey() ) ); + Bu::MyriadStream ms = mStore.open( hIndex.get( o->getKey() ), Bu::Myriad::WriteNew ); _cacheObjectSave( ms, o ); ms.setSize( ms.tell() ); @@ -127,7 +127,7 @@ namespace Bu if( !bStructureChanged ) return; - Bu::MyriadStream ms = mStore.openStream( 1 ); + Bu::MyriadStream ms = mStore.open( 1, Bu::Myriad::WriteNew ); Bu::Archive ar( ms, Bu::Archive::save ); ar << (uint8_t)0 << hIndex; ar.close(); -- cgit v1.2.3