1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a bug introduced by the previous check-in but only seen if

SQLITE_ENABLE_EXPENSIVE_ASSERTS is turned on.

FossilOrigin-Name: 9c9ec8994bf701249efce6c7bb911de4525808c8
This commit is contained in:
drh
2010-06-01 13:17:44 +00:00
parent 9c1564779e
commit f77bbd9fc5
3 changed files with 12 additions and 12 deletions

View File

@@ -819,7 +819,7 @@ static void walCleanupHash(Wal *pWal){
volatile HASHTABLE_DATATYPE *aHash; /* Pointer to hash table to clear */
volatile u32 *aPgno; /* Unused return from walHashFind() */
u32 iZero; /* frame == (aHash[x]+iZero) */
int iLimit; /* Zero values greater than this */
int iLimit = 0; /* Zero values greater than this */
assert( pWal->writeLock );
testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE-1 );
@@ -850,7 +850,7 @@ static void walCleanupHash(Wal *pWal){
/* Verify that the every entry in the mapping region is still reachable
** via the hash table even after the cleanup.
*/
{
if( iLimit ){
int i; /* Loop counter */
int iKey; /* Hash key */
for(i=1; i<=iLimit; i++){