]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Make sure variable declarations occur first in code blocks. (CVS 5836)
authorshane <shane@noemail.net>
Wed, 22 Oct 2008 16:26:47 +0000 (16:26 +0000)
committershane <shane@noemail.net>
Wed, 22 Oct 2008 16:26:47 +0000 (16:26 +0000)
FossilOrigin-Name: b78f44c91fcf3920e69c11a6f72e8f032905a3c7

manifest
manifest.uuid
src/pager.c

index 8122aa3838b12965a46374facb55c4717cb0bfcf..5f289c8d73ec9e08811393b1f27bac4431139665 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Test\scases\sfor\sticket\s#3442.\s(CVS\s5835)
-D 2008-10-22T16:04:43
+C Make\ssure\svariable\sdeclarations\soccur\sfirst\sin\scode\sblocks.\s(CVS\s5836)
+D 2008-10-22T16:26:48
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in 4352ab12369706c793f3e8165db35b102c929998
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -139,7 +139,7 @@ F src/os_common.h 24525d8b7bce66c374dfc1810a6c9043f3359b60
 F src/os_os2.c 24221ff5ab20cf3472e3ec7eec595f759de55298
 F src/os_unix.c 5e3b3c9a54546249c1317cff5343e965192f7f2b
 F src/os_win.c 13bed718f62d64031b17bb3685adcf994dbf0232
-F src/pager.c fd11076a5a2f46a831688f036f03c57bd730dff5
+F src/pager.c 8377118bd5ae055b66683926b264f6c04442317e
 F src/pager.h 4a57b219c0765fe1870238064e3f46e4eb2cf5af
 F src/parse.y f4620f42b5e0141e20243b5f963d0fc9c180ab9b
 F src/pcache.c 5b80676e664019c1ebc8356cc25332dd69da6269
@@ -650,7 +650,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P e0d3aa75b4fa0e706185a3058b5962916e30d066
-R 59ff706943428be14662f4d5a4372928
+P a8bb5acf708c8f7e52d3f67b85094116386f10fa
+R 710931e3f1f060e772777d1613d702dc
 U shane
-Z 7e8bfbcdb85f2134260d3bc0bc1c0cf2
+Z 69aead5e2a809ed3469cd42f7cb51300
index 76e4e2cb2e7a82bdf482880433a7cd67dfade570..aabd0c984be83824ffe1b7bad8725d8405c307e3 100644 (file)
@@ -1 +1 @@
-a8bb5acf708c8f7e52d3f67b85094116386f10fa
\ No newline at end of file
+b78f44c91fcf3920e69c11a6f72e8f032905a3c7
\ No newline at end of file
index 6932ab96df44426c5a692f9ad9a3e589627d3104..dbc3d7e941bcc0cb8ec02abf948914c7c064a872 100644 (file)
@@ -18,7 +18,7 @@
 ** file simultaneously, or one process from reading the database while
 ** another is writing.
 **
-** @(#) $Id: pager.c,v 1.498 2008/10/17 18:51:52 danielk1977 Exp $
+** @(#) $Id: pager.c,v 1.499 2008/10/22 16:26:48 shane Exp $
 */
 #ifndef SQLITE_OMIT_DISKIO
 #include "sqliteInt.h"
@@ -2582,8 +2582,8 @@ static int pagerSharedLock(Pager *pPager){
 
   if( pPager->state==PAGER_UNLOCK || isErrorReset ){
     sqlite3_vfs *pVfs = pPager->pVfs;
-    assert( !MEMDB );
     int isHotJournal;
+    assert( !MEMDB );
     assert( sqlite3PcacheRefCount(pPager->pPCache)==0 );
     if( !pPager->noReadlock ){
       rc = pager_wait_on_lock(pPager, SHARED_LOCK);
@@ -3267,10 +3267,10 @@ static int pager_write(PgHdr *pPg){
      && !pageInStatement(pPg) 
      && (int)pPg->pgno<=pPager->stmtSize 
     ){
-      assert( (pPg->flags&PGHDR_IN_JOURNAL) 
-                 || (int)pPg->pgno>pPager->origDbSize );
       i64 offset = pPager->stmtNRec*(4+pPager->pageSize);
       char *pData2 = CODEC2(pPager, pData, pPg->pgno, 7);
+      assert( (pPg->flags&PGHDR_IN_JOURNAL) 
+                 || (int)pPg->pgno>pPager->origDbSize );
       rc = write32bits(pPager->stfd, offset, pPg->pgno);
       if( rc==SQLITE_OK ){
         rc = sqlite3OsWrite(pPager->stfd, pData2, pPager->pageSize, offset+4);