]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix a recently introduced problem in "permutations.test autovacuum_crash". (CVS 6120)
authordanielk1977 <danielk1977@noemail.net>
Tue, 6 Jan 2009 15:20:58 +0000 (15:20 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Tue, 6 Jan 2009 15:20:58 +0000 (15:20 +0000)
FossilOrigin-Name: 2cdbb468ed81d35a7e1a580683864de60e103083

manifest
manifest.uuid
src/pager.c

index e8bd7390074d43df1571cb823e541796bbf397aa..5c4734f764168909a73eaad8ceebd895c995a9b5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Update\spermutations.test\sso\sthat\sit\sdoes\snot\sshow\san\serror\swhen\srunning\nthe\ssinglethread\sand\smultithread\stest\scases\son\sTHREADSAFE=0\sbuilds.\s(CVS\s6119)
-D 2009-01-06T14:50:11
+C Fix\sa\srecently\sintroduced\sproblem\sin\s"permutations.test\sautovacuum_crash".\s(CVS\s6120)
+D 2009-01-06T15:20:58
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in 05461a9b5803d5ad10c79f989801e9fd2cc3e592
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -142,7 +142,7 @@ F src/os_common.h 24525d8b7bce66c374dfc1810a6c9043f3359b60
 F src/os_os2.c bed77dc26e3a95ce4a204936b9a1ca6fe612fcc5
 F src/os_unix.c e6eacc7ec735ded605fefcbaf250058baa8feb12
 F src/os_win.c 496e3ceb499aedc63622a89ef76f7af2dd902709
-F src/pager.c e93008f9326701087239c0300547e66d18ddb63c
+F src/pager.c 06f6e84895e1ce76eab29bd3e05b6d77cfbc46fb
 F src/pager.h 0793c5e4faed6c278037eb22b2434b318687d615
 F src/parse.y 4d0e33a702dc3ea7b69d8ae1914b3fbd32e46057
 F src/pcache.c 16dc8da6e6ba6250f8dfd9ee46036db1cbceedc6
@@ -692,7 +692,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P a64f3db0b39af53c8d8f80c242baa8aa4b5bd04e
-R 7c4f8eabbf5a60a91f851023ba3b8043
-U drh
-Z cc04516c576e9544afd34428d80e3ec0
+P 301b57b7bac949dd77037ad3175ba87c41c8c843
+R 9c5a7129ba27247d5da0e5c859ad9f6c
+U danielk1977
+Z 15de7c3b3d2cf4749596d9f77443a212
index fe8934a919ad7df0c0f595131fffb2f4c5764200..48ad504f5781fa40d2c56c40edf7a95c8d4b10b0 100644 (file)
@@ -1 +1 @@
-301b57b7bac949dd77037ad3175ba87c41c8c843
\ No newline at end of file
+2cdbb468ed81d35a7e1a580683864de60e103083
\ No newline at end of file
index 938e8994e1236085b3f2cd6f8155b76c12b9e12c..91ad73b38d78aa722f0363db5d53ba8f68df687b 100644 (file)
@@ -18,7 +18,7 @@
 ** file simultaneously, or one process from reading the database while
 ** another is writing.
 **
-** @(#) $Id: pager.c,v 1.531 2009/01/06 14:34:35 danielk1977 Exp $
+** @(#) $Id: pager.c,v 1.532 2009/01/06 15:20:58 danielk1977 Exp $
 */
 #ifndef SQLITE_OMIT_DISKIO
 #include "sqliteInt.h"
@@ -2580,7 +2580,7 @@ static int subjournalPage(PgHdr *pPg){
   i64 offset = pPager->stmtNRec*(4+pPager->pageSize);
   char *pData2 = CODEC2(pPager, pData, pPg->pgno, 7);
 
-  PAGERTRACE3("STMT-JOURNAL %d page %d @ %d\n", PAGERID(pPager), pPg->pgno);
+  PAGERTRACE3("STMT-JOURNAL %d page %d\n", PAGERID(pPager), pPg->pgno);
 
   assert( pageInJournal(pPg) || pPg->pgno>pPager->dbOrigSize );
   rc = write32bits(pPager->sjfd, offset, pPg->pgno);
@@ -3860,6 +3860,7 @@ int sqlite3PagerCommitPhaseOne(
           Pgno i;
           Pgno iSkip = PAGER_MJ_PGNO(pPager);
           Pgno dbSize = pPager->dbSize;
+          pPager->dbSize = pPager->dbOrigSize;
           for( i=pPager->dbSize+1; i<=pPager->dbOrigSize; i++ ){
             if( !sqlite3BitvecTest(pPager->pInJournal, i) && i!=iSkip ){
               rc = sqlite3PagerGet(pPager, i, &pPg);