(trunk) #1521 "memory cache to reduce disk IO" -- commit block-cache-rc1.diff to trunk for the nightlies.

This commit is contained in:
Charles Kerr
2010-06-19 14:25:11 +00:00
parent dbcd1c942f
commit e70bebf930
17 changed files with 525 additions and 33 deletions

View File

@@ -102,7 +102,7 @@ tr_ptrArrayPop( tr_ptrArray* t )
return ret;
}
static void
void
tr_ptrArrayErase( tr_ptrArray * t,
int begin,
int end )
@@ -123,7 +123,7 @@ tr_ptrArrayErase( tr_ptrArray * t,
***
**/
static int
int
tr_ptrArrayLowerBound( const tr_ptrArray * t,
const void * ptr,
int compare( const void *,
@@ -184,7 +184,7 @@ tr_ptrArrayInsertSorted( tr_ptrArray * t,
const int pos = tr_ptrArrayLowerBound( t, ptr, compare, NULL );
const int ret = tr_ptrArrayInsert( t, ptr, pos );
assertSortedAndUnique( t, compare );
//assertSortedAndUnique( t, compare );
return ret;
}