diff options
author | dan <dan@noemail.net> | 2010-05-21 16:23:43 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-05-21 16:23:43 +0000 |
commit | 8067adbc3f17ba9eb3d71f88efe29f31717a40c5 (patch) | |
tree | a5fc0c2559a848f6e8de30ea87b453c781eda088 /src | |
parent | 6f1501481f3acb932fbf76618cf7e78809b55e19 (diff) | |
download | sqlite-8067adbc3f17ba9eb3d71f88efe29f31717a40c5.tar.gz sqlite-8067adbc3f17ba9eb3d71f88efe29f31717a40c5.zip |
Correct an off-by-one bug in the previous commit.
FossilOrigin-Name: 75a1130d86faf18e73cb46cda5d029f1e913e4e6
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=1; i<=HASHTABLE_NPAGE; i++){ + for(i=0; i<HASHTABLE_NPAGE; i++){ if( aHash[i]>iLimit ){ aHash[i] = 0; } |