]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix another bug in walClearHash().
authordan <dan@noemail.net>
Fri, 21 May 2010 19:15:04 +0000 (19:15 +0000)
committerdan <dan@noemail.net>
Fri, 21 May 2010 19:15:04 +0000 (19:15 +0000)
FossilOrigin-Name: 40f80ffe70ca691dfa146f6d84956ed0784fc63d

manifest
manifest.uuid
src/wal.c

index 26c17a3bc3b0db866c46ce1c85bddc4c5d1005b3..1fcbcd7dba667ae5923f4973a27b50e3f59138be 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,8 +1,5 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-C Comment\sout\sthe\sSQLITE_FCNTL_SIZE_HINT\sfrom\sos_unix.c\ssince\sit\sdoes\snot\s\nseem\sto\sprovide\sany\sperformance\sgain\sthere.
-D 2010-05-21T18:24:07
+C Fix\sanother\sbug\sin\swalClearHash().
+D 2010-05-21T19:15:05
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -227,7 +224,7 @@ F src/vdbeblob.c 5327132a42a91e8b7acfb60b9d2c3b1c5c863e0e
 F src/vdbemem.c 2a82f455f6ca6f78b59fb312f96054c04ae0ead1
 F src/vdbetrace.c 864cef96919323482ebd9986f2132435115e9cc2
 F src/vtab.c a0f8a40274e4261696ef57aa806de2776ab72cda
-F src/wal.c 2b984834bb8f235919c2b476c03dcb2e7e5b83d6
+F src/wal.c ad8e423a197525e04c2fa3ef51cc97a1c38934da
 F src/wal.h 434f76f51225bb614e43ccb6bd2341541ba6a06e
 F src/walker.c 3112bb3afe1d85dc52317cb1d752055e9a781f8f
 F src/where.c 75fee9e255b62f773fcadd1d1f25b6f63ac7a356
@@ -816,14 +813,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 75a1130d86faf18e73cb46cda5d029f1e913e4e6
-R 839c593a17a6b567af49cdb7ef23c4db
-U drh
-Z 8d7556ec9f9935e65fbd17fdc1af5967
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.6 (GNU/Linux)
-
-iD8DBQFL9s/KoxKgR168RlERAuA2AJ4qgUiS8IHtHs0yl0ksOmtgd7JGxQCbBhTM
-nKBnhjb7e+PupUPnzd4kGOI=
-=H7pO
------END PGP SIGNATURE-----
+P 7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
+R 2e048d2ddbf28060ebdb21766a34092e
+U dan
+Z ab0da23d8b99c2d63fccda81279534cd
index 745e0648089b8579b455eebbad9dbdd6bcf1de39..a96e1a542b13cba318ca8ba914a4dc7d0b735664 100644 (file)
@@ -1 +1 @@
-7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
\ No newline at end of file
+40f80ffe70ca691dfa146f6d84956ed0784fc63d
\ No newline at end of file
index 82a1c212de6b899076b84e0eeccbacc9cf8a1cb3..17d1144c7401b785d5d2aec87992c57fa6a546e7 100644 (file)
--- a/src/wal.c
+++ b/src/wal.c
@@ -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;
         }