Turn down the walTrace logs
Change-Id: Ibeca4fcaeaec84e471d6b5191aabb13df609464a
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index 164fcfc..6e9d2b3 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -43451,14 +43451,18 @@
** have started to backfill the appended frames but crashed before
** it finished. Leaving a corrupt image in the database file.
*/
- walTrace("wal read/write race - writer won");
+ if( cnt>5 ){
+ walTrace("wal read/write race - writer won");
+ }
walUnlockShared(pWal, WAL_READ_LOCK(0));
return WAL_RETRY;
}
pWal->readLock = 0;
return SQLITE_OK;
}else if( rc!=SQLITE_BUSY ){
- walTrace("walLockShared(0):%d in walTryBeginRead", rc);
+ if( cnt>5 ){
+ walTrace("walLockShared(0):%d in walTryBeginRead", rc);
+ }
return rc;
}
}
@@ -43493,7 +43497,9 @@
}
}else if( rc==SQLITE_BUSY ){
rc = WAL_RETRY;
- walTrace("aReadMark[1] is busy");
+ if( cnt>5 ){
+ walTrace("aReadMark[1] is busy");
+ }
}
return rc;
}else{
@@ -43506,7 +43512,9 @@
walUnlockExclusive(pWal, WAL_READ_LOCK(i), 1);
break;
}else if( rc!=SQLITE_BUSY ){
- walTrace("walLockExclusive(%d):%d", i, rc);
+ if( cnt>5 ){
+ walTrace("walLockExclusive(%d):%d", i, rc);
+ }
return rc;
}
}
@@ -43514,7 +43522,9 @@
rc = walLockShared(pWal, WAL_READ_LOCK(mxI));
if( rc ){
- walTrace("walLockShared(mxI=%d):%d", mxI, rc);
+ if( cnt>5 ){
+ walTrace("walLockShared(mxI=%d):%d", mxI, rc);
+ }
return rc==SQLITE_BUSY ? WAL_RETRY : rc;
}
/* Now that the read-lock has been obtained, check that neither the