mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Activate test cases for new journal format. (CVS 1687)
FossilOrigin-Name: 197d00d6a6a440848a0b4710157272558868221c
This commit is contained in:
@@ -190,7 +190,7 @@ static int cacheBlock(OsTestFile *pFile, int blk){
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
/* #define TRACE_WRITECACHE */
|
||||
/* #define TRACE_WRITECACHE */
|
||||
|
||||
/*
|
||||
** Write the cache of pFile to disk. If crash is non-zero, randomly
|
||||
@@ -212,7 +212,7 @@ static int writeCache2(OsTestFile *pFile, int crash){
|
||||
char random;
|
||||
sqlite3Randomness(1, &random);
|
||||
if( random & 0x01 ){
|
||||
if( 0 && random & 0x02 ){
|
||||
if( random & 0x02 ){
|
||||
trash = 1;
|
||||
#ifdef TRACE_WRITECACHE
|
||||
printf("Trashing block %d of %s\n", i, pFile->zName);
|
||||
@@ -265,7 +265,7 @@ static int writeCache(OsTestFile *pFile){
|
||||
if( c ){
|
||||
OsTestFile *p;
|
||||
#ifdef TRACE_WRITECACHE
|
||||
printf("Crash during sync of %s\n", pFile->zName);
|
||||
printf("\nCrash during sync of %s\n", pFile->zName);
|
||||
#endif
|
||||
for(p=pAllFiles; p; p=p->pNext){
|
||||
writeCache2(p, 1);
|
||||
|
||||
Reference in New Issue
Block a user