From 668737effd601778fba74edec14d22dd5b87457a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 19 Apr 2010 15:16:53 +0000 Subject: CacheStoreMyriad is written, it's pretty much a copy of CacheStoreNids since Nids and Myriad pretty much share an API. However, there seems to be a bug in Myriad when a Myriad file is created and filled with data immediately, the header stream is mis-linking one of the blocks again. --- src/myriad.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/myriad.h') diff --git a/src/myriad.h b/src/myriad.h index 0344057..8f626a4 100644 --- a/src/myriad.h +++ b/src/myriad.h @@ -12,6 +12,7 @@ #include "bu/bitstring.h" #include "bu/exceptionbase.h" #include "bu/array.h" +#include "bu/hash.h" namespace Bu { @@ -147,6 +148,7 @@ namespace Bu Block *getBlock( int iBlock ); void releaseBlock( Block *pBlock ); + void syncBlock( Block *pBlock ); private: Bu::Stream &sStore; @@ -155,6 +157,8 @@ namespace Bu int iUsed; Bu::BitString bsBlockUsed; StreamArray aStreams; + typedef Bu::Hash BlockHash; + BlockHash hActiveBlocks; }; }; -- cgit v1.2.3