]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Comment typo fix and minor cleanup in the pager. No logic changes.
authordrh <drh@noemail.net>
Sun, 28 Jun 2015 17:33:11 +0000 (17:33 +0000)
committerdrh <drh@noemail.net>
Sun, 28 Jun 2015 17:33:11 +0000 (17:33 +0000)
FossilOrigin-Name: 94ef17012855b7be725594c34bcea75f34c40190

manifest
manifest.uuid
src/pager.c

index 31eb85101aee7893947e24a3039cdeb2272c196b..2505603254234e4a8c4a0bdff692e6e88d046140 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Avoid\sunnecessary\scalls\sto\ssqlite3VdbeSerialTypeLen()\sfor\sinteger\nserial\stypes,\sfor\sa\ssmall\ssize\sreduction\sand\sa\sspeed\sincrease.
-D 2015-06-28T02:58:51.359
+C Comment\stypo\sfix\sand\sminor\scleanup\sin\sthe\spager.\s\sNo\slogic\schanges.
+D 2015-06-28T17:33:11.230
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 285a0a234ed7610d431d91671c136098c2bd86a9
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -314,7 +314,7 @@ F src/os_setup.h c9d4553b5aaa6f73391448b265b89bed0b890faa
 F src/os_unix.c 23eb5f56fac54d8fe0cb204291f3b3b2d94f23fc
 F src/os_win.c 27cc135e2d0b8b1e2e4944db1e2669a6a18fa0f8
 F src/os_win.h eb7a47aa17b26b77eb97e4823f20a00b8bda12ca
-F src/pager.c 9bc918a009285f96ec6dac62dd764c7063552455
+F src/pager.c db79b64a5498e2b3a72f0f6bc74faebe48da3e95
 F src/pager.h c3476e7c89cdf1c6914e50a11f3714e30b4e0a77
 F src/parse.y 6d60dda8f8d418b6dc034f1fbccd816c459983a8
 F src/pcache.c d8b19632706dd6b81b03d0c5fd1e6bab8c13d0b9
@@ -1364,7 +1364,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 63998471d023dd846d5583ac856e2acc47ad41ea
-R 212ca1fcb98a576a11f4bdf11ee3ebc0
+P 9cd30d33b1d02dc8c55c1d74bdbcefab63ebf2a7
+R b8484b94b4d1a85c0081f4649a289df8
 U drh
-Z 171de1cc147222ccddab9bfa4a1ca423
+Z b085b905d03794e34ce8f566e5412526
index 64424134b86b3d89d4f63d5dd0d4c06e295f2008..b03653669cc7c493773c456c50ed8f95de9192a9 100644 (file)
@@ -1 +1 @@
-9cd30d33b1d02dc8c55c1d74bdbcefab63ebf2a7
\ No newline at end of file
+94ef17012855b7be725594c34bcea75f34c40190
\ No newline at end of file
index 291c7e49682a6ca9995502f9a167c96f487288b0..a50272d377ba0633217d325760df0b9e2277a72e 100644 (file)
@@ -5131,7 +5131,7 @@ int sqlite3PagerSharedLock(Pager *pPager){
       ** occurring on the very first access to a file, in order to save a
       ** single unnecessary sqlite3OsRead() call at the start-up.
       **
-      ** Database changes is detected by looking at 15 bytes beginning
+      ** Database changes are detected by looking at 15 bytes beginning
       ** at offset 24 into the file.  The first 4 of these 16 bytes are
       ** a 32-bit counter that is incremented with each change.  The
       ** other bytes change randomly with each file change when
@@ -5352,10 +5352,11 @@ int sqlite3PagerAcquire(
     pPg = 0;
     goto pager_acquire_err;
   }
-  assert( (*ppPage)->pgno==pgno );
-  assert( (*ppPage)->pPager==pPager || (*ppPage)->pPager==0 );
+  assert( pPg==(*ppPage) );
+  assert( pPg->pgno==pgno );
+  assert( pPg->pPager==pPager || pPg->pPager==0 );
 
-  if( (*ppPage)->pPager && !noContent ){
+  if( pPg->pPager && !noContent ){
     /* In this case the pcache already contains an initialized copy of
     ** the page. Return without further ado.  */
     assert( pgno<=PAGER_MAX_PGNO && pgno!=PAGER_MJ_PGNO(pPager) );
@@ -5366,7 +5367,6 @@ int sqlite3PagerAcquire(
     /* The pager cache has created a new page. Its content needs to 
     ** be initialized.  */
 
-    pPg = *ppPage;
     pPg->pPager = pPager;
 
     /* The maximum page number is 2^31. Return SQLITE_CORRUPT if a page