]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix the blocking WAL lock so that it works and so that it compiles on a Mac.
authordrh <drh@noemail.net>
Sat, 21 Mar 2015 16:36:03 +0000 (16:36 +0000)
committerdrh <drh@noemail.net>
Sat, 21 Mar 2015 16:36:03 +0000 (16:36 +0000)
FossilOrigin-Name: 67d69d21de32816894be53e4b446656d4174eb0d

manifest
manifest.uuid
src/os_unix.c

index 75771530bb950f471c894c08cc0214d4ad0ff7b6..1277a25997c9689d9b0236420d9e89ad27a159cc 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Remove\san\sunreachable\sbranch\sfrom\sthe\sOP_VCreate\sopcode\s(merge\saccidental\sfork\sin\strunk).
-D 2015-03-21T12:25:23.115
+C Fix\sthe\sblocking\sWAL\slock\sso\sthat\sit\sworks\sand\sso\sthat\sit\scompiles\son\sa\sMac.
+D 2015-03-21T16:36:03.990
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 88a3e6261286db378fdffa1124cad11b3c05f5bb
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -214,7 +214,7 @@ F src/os.c 8fd25588eeba74068d41102d26810e216999b6c8
 F src/os.h 3e57a24e2794a94d3cf2342c6d9a884888cd96bf
 F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04
 F src/os_setup.h c9d4553b5aaa6f73391448b265b89bed0b890faa
-F src/os_unix.c cc903ecc6ebda90ef703d043ddaa7f33de0cab0f
+F src/os_unix.c e68c8e77e47ce38865ebf8e1a0e877ac955f469c
 F src/os_win.c 8223e7db5b7c4a81d8b161098ac3959400434cdb
 F src/os_win.h eb7a47aa17b26b77eb97e4823f20a00b8bda12ca
 F src/pager.c 4120a49ecd37697e28f5ed807f470b9c0b88410c
@@ -1246,7 +1246,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P e3e234649616f20610abce9ae9da1c572d3a4377 5fca41a3811766b48f5f23d5d49cc4e6e79fa867
-R f330fb6722b7e402dae00a81353077df
-U dan
-Z 1c256b7cca05bea8c4676944e04ddeb4
+P 2fbfec62fc03d42ee240dfefaa0aeb59a3f04d88
+R 5a3409f8ffa9923877231407f3215215
+U drh
+Z 15a1523db948e8ebecc44c81b8244965
index d71396b19d36d66280bda95c815abf42f7274821..a82805b710ec9093d4b654b167712225dc5f9b43 100644 (file)
@@ -1 +1 @@
-2fbfec62fc03d42ee240dfefaa0aeb59a3f04d88
\ No newline at end of file
+67d69d21de32816894be53e4b446656d4174eb0d
\ No newline at end of file
index 16cb935decf587d1a2913b365b00400d1c56d352..d0924a511b165826147f039d9de654f9e6e1f657 100644 (file)
@@ -3782,6 +3782,10 @@ static int unixGetTempname(int nBuf, char *zBuf);
 static int unixFileControl(sqlite3_file *id, int op, void *pArg){
   unixFile *pFile = (unixFile*)id;
   switch( op ){
+    case SQLITE_FCNTL_WAL_BLOCK: {
+      pFile->ctrlFlags |= UNIXFILE_BLOCK;
+      return SQLITE_OK;
+    }
     case SQLITE_FCNTL_LOCKSTATE: {
       *(int*)pArg = pFile->eFileLock;
       return SQLITE_OK;
@@ -7228,10 +7232,6 @@ static int proxyTransformUnixFile(unixFile *pFile, const char *path) {
 */
 static int proxyFileControl(sqlite3_file *id, int op, void *pArg){
   switch( op ){
-    case SQLITE_FCNTL_WAL_BLOCK: {
-      id->ctrlFlags |= UNIXFILE_BLOCK;
-      return SQLITE_OK;
-    }
     case SQLITE_FCNTL_GET_LOCKPROXYFILE: {
       unixFile *pFile = (unixFile*)id;
       if( pFile->pMethod == &proxyIoMethods ){