diff options
author | dan <dan@noemail.net> | 2010-05-21 19:15:04 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-05-21 19:15:04 +0000 |
commit | 3b1eca0ade78a41f95f7507a22bbaa286ae332be (patch) | |
tree | 8031c7e48824bc00e8bf01d911472534761661ee /src | |
parent | c527669df560befda372dff4af13dfafd307a52e (diff) | |
download | sqlite-3b1eca0ade78a41f95f7507a22bbaa286ae332be.tar.gz sqlite-3b1eca0ade78a41f95f7507a22bbaa286ae332be.zip |
Fix another bug in walClearHash().
FossilOrigin-Name: 40f80ffe70ca691dfa146f6d84956ed0784fc63d
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1491,7 +1491,7 @@ static void walClearHash(Wal *pWal, u32 iOldMx, u32 iNewMx){ iLimit = iNewMx - iZero; if( iLimit>0 ){ int i; /* Used to iterate through aHash[] */ - for(i=0; i<HASHTABLE_NPAGE; i++){ + for(i=0; i<HASHTABLE_NSLOT; i++){ if( aHash[i]>iLimit ){ aHash[i] = 0; } |