]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are only
authordrh <drh@noemail.net>
Fri, 24 Feb 2012 14:33:28 +0000 (14:33 +0000)
committerdrh <drh@noemail.net>
Fri, 24 Feb 2012 14:33:28 +0000 (14:33 +0000)
used by ZIPVFS.

FossilOrigin-Name: 3130275c64a60c5cfacbd11123305e6d99ea866d

manifest
manifest.uuid
src/pager.c
src/pager.h
src/pragma.c
src/wal.c
src/wal.h

index ddf61903cce2e543339a3ce517380e8376d27947..f6b0508b6400a9f8fc0ea61b0fe423a7478936c5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C If\sthe\sSQLITE_FCNTL_PRAGMA\sfile\scontrol\sreturns\ssomething\sother\sthan\nSQLITE_NOTFOUND,\sthen\sskip\sthe\srest\sof\sPragma\scode\sgeneration.
-D 2012-02-24T00:03:12.589
+C Add\s#ifdef\sSQLITE_ENABLE_ZIPVFS\saround\sthose\sbits\sof\scode\sthat\sare\sonly\nused\sby\sZIPVFS.
+D 2012-02-24T14:33:28.413
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 3f79a373e57c3b92dabf76f40b065e719d31ac34
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -168,13 +168,13 @@ F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04
 F src/os_os2.c 4a75888ba3dfc820ad5e8177025972d74d7f2440
 F src/os_unix.c 0e3d2942d228d0366fb80a3640f35caf413b66d1
 F src/os_win.c 5ac061ae1326a71500cee578ed0fd9113b4f6a37
-F src/pager.c 25733ab94de3c058b98b7481ed0d7163cd9471cf
-F src/pager.h 0ccc8260fadff8e0ce5193392faea6954178bf3d
+F src/pager.c 3955b62cdb5bb64559607cb474dd12a6c8e1d4a5
+F src/pager.h ef1eaf8593e78f73885c1dfac27ad83bee23bdc5
 F src/parse.y 1ddd71ae55f4b7cbb2672526ea4de023de0f519e
 F src/pcache.c f8043b433a57aba85384a531e3937a804432a346
 F src/pcache.h 1b5dcc3dc8103d03e625b177023ee67764fa6b7c
 F src/pcache1.c b30b1c35908346ecc43d8d9d17f2ddf6817f8f60
-F src/pragma.c 11f5fff828e00ece318eefc8c8808b4fc9835739
+F src/pragma.c e708b3bb5704605816f617e0b1d63a5488060715
 F src/prepare.c ec4989f7f480544bdc4192fe663470d2a2d7d61e
 F src/printf.c 7ffb4ebb8b341f67e049695ba031da717b3d2699
 F src/random.c cd4a67b3953b88019f8cd4ccd81394a8ddfaba50
@@ -250,8 +250,8 @@ F src/vdbemem.c fb0ac964ccbcd94f595eb993c05bfd9c52468a4a
 F src/vdbesort.c b25814d385895544ebc8118245c8311ded7f81c9
 F src/vdbetrace.c d6e50e04e1ec498150e519058f617d91b8f5c843
 F src/vtab.c ab90fb600a3f5e4b7c48d22a4cdb2d6b23239847
-F src/wal.c ef05bdbff7ad30eb950222b2783dac21f7b8acb4
-F src/wal.h 9a300673e86f04eeb7442348d3557eecc5a9509a
+F src/wal.c c164c39e8625b2b6e7d7b2aab5e7296ebd7e8190
+F src/wal.h 29c197540b19044e6cd73487017e5e47a1d3dac6
 F src/walker.c 3112bb3afe1d85dc52317cb1d752055e9a781f8f
 F src/where.c af623942514571895818b9b7ae11db95ae3b3d88
 F test/8_3_names.test 631ea964a3edb091cf73c3b540f6bcfdb36ce823
@@ -990,7 +990,7 @@ F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings-clang.sh 9f406d66e750e8ac031c63a9ef3248aaa347ef2a
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
-P f9df4063fbd100ce306a89fc649c1860fd801f31
-R 918c6dd4ec2727a8cb49f3dbede7e930
+P 9e6d340f557c2f2c8a07300ac60357af9906a7fa
+R ea57edcd6f93a841cf2e153be1c9f0e7
 U drh
-Z a93fbf9532fae037d0b7a67217939ce5
+Z 92fb8a3e30d52bd11c67570a5d62f0a2
index 40120e066afa7690210c1467c92d2015cbd21fd5..3f96ea1fdaf57e03e9cd98a2bb7afd19651e320d 100644 (file)
@@ -1 +1 @@
-9e6d340f557c2f2c8a07300ac60357af9906a7fa
\ No newline at end of file
+3130275c64a60c5cfacbd11123305e6d99ea866d
\ No newline at end of file
index 2cf4dd0dd9503dbf81a67ed67838960ccc559def..66252aa0f73eeec099ac521765f60bbafe980a4b 100644 (file)
@@ -6871,6 +6871,7 @@ int sqlite3PagerCloseWal(Pager *pPager){
   return rc;
 }
 
+#ifdef SQLITE_ENABLE_ZIPVFS
 /*
 ** A read-lock must be held on the pager when this function is called. If
 ** the pager is in WAL mode and the WAL file currently contains one or more
@@ -6882,6 +6883,7 @@ int sqlite3PagerWalFramesize(Pager *pPager){
   assert( pPager->eState==PAGER_READER );
   return sqlite3WalFramesize(pPager->pWal);
 }
+#endif
 
 #ifdef SQLITE_HAS_CODEC
 /*
index 240aeb4b5d3eb9d3d414b24c6cb2d9890e4dacdb..eca8a2f077e3504172e3c8f8b0612a3fc6a6451f 100644 (file)
@@ -143,8 +143,9 @@ int sqlite3PagerWalSupported(Pager *pPager);
 int sqlite3PagerWalCallback(Pager *pPager);
 int sqlite3PagerOpenWal(Pager *pPager, int *pisOpen);
 int sqlite3PagerCloseWal(Pager *pPager);
-
-int sqlite3PagerWalFramesize(Pager *pPager);
+#ifdef SQLITE_ENABLE_ZIPVFS
+  int sqlite3PagerWalFramesize(Pager *pPager);
+#endif
 
 /* Functions used to query pager state and configuration. */
 u8 sqlite3PagerIsreadonly(Pager*);
index bc1469b79851b22338921726e21bd06777e8fc2c..2db0b61508524656fa9581d3365922b978c6cb4d 100644 (file)
@@ -663,7 +663,7 @@ void sqlite3Pragma(
         ** creates the database file. It is important that it is created
         ** as an auto-vacuum capable db.
         */
-        int rc = sqlite3BtreeSetAutoVacuum(pBt, eAuto);
+        rc = sqlite3BtreeSetAutoVacuum(pBt, eAuto);
         if( rc==SQLITE_OK && (eAuto==1 || eAuto==2) ){
           /* When setting the auto_vacuum mode to either "full" or 
           ** "incremental", write the value of meta[6] in the database
@@ -781,7 +781,6 @@ void sqlite3Pragma(
     }else{
 #ifndef SQLITE_OMIT_WSD
       if( zRight[0] ){
-        int rc;
         int res;
         rc = sqlite3OsAccess(db->pVfs, zRight, SQLITE_ACCESS_READWRITE, &res);
         if( rc!=SQLITE_OK || res==0 ){
index 48fcba100b56d253eeeb889dd24d6f3433e44d11..97d2185ea29d0f759698ef018cebae5c534704f4 100644 (file)
--- a/src/wal.c
+++ b/src/wal.c
@@ -3068,6 +3068,7 @@ int sqlite3WalHeapMemory(Wal *pWal){
   return (pWal && pWal->exclusiveMode==WAL_HEAPMEMORY_MODE );
 }
 
+#ifdef SQLITE_ENABLE_ZIPVFS
 /*
 ** If the argument is not NULL, it points to a Wal object that holds a
 ** read-lock. This function returns the database page-size if it is known,
@@ -3077,5 +3078,6 @@ int sqlite3WalFramesize(Wal *pWal){
   assert( pWal==0 || pWal->readLock>=0 );
   return (pWal ? pWal->szPage : 0);
 }
+#endif
 
 #endif /* #ifndef SQLITE_OMIT_WAL */
index 437acd1df3ba9e8e88d81ab6ed47302d93895a17..a848de15276d525c3f062b0ad5f75f43e16e0d3e 100644 (file)
--- a/src/wal.h
+++ b/src/wal.h
@@ -125,10 +125,12 @@ int sqlite3WalExclusiveMode(Wal *pWal, int op);
 */
 int sqlite3WalHeapMemory(Wal *pWal);
 
+#ifdef SQLITE_ENABLE_ZIPVFS
 /* If the WAL file is not empty, return the number of bytes of content
 ** stored in each frame (i.e. the db page-size when the WAL was created).
 */
 int sqlite3WalFramesize(Wal *pWal);
+#endif
 
 #endif /* ifndef SQLITE_OMIT_WAL */
 #endif /* _WAL_H_ */