]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
In windows, ignore ERROR_NOT_LOCKED when calling the read-lock removal
authordrh <drh@noemail.net>
Wed, 27 Apr 2011 19:54:44 +0000 (19:54 +0000)
committerdrh <drh@noemail.net>
Wed, 27 Apr 2011 19:54:44 +0000 (19:54 +0000)
routine.

FossilOrigin-Name: f55156c5194e85c47728b8a97fde3e5f0a5c9b56

manifest
manifest.uuid
src/os_win.c

index 33d82139045bce02602bcd2203f7ec59e397ca86..51018c9381653c928e3c96a3cc508483b62caae5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Change\sthe\sname\sof\san\sinternal\sfunction\sto\savoid\sconflicts\swith\sthe\smath\nlibrary.
-D 2011-04-27T18:08:42.071
+C In\swindows,\signore\sERROR_NOT_LOCKED\swhen\scalling\sthe\sread-lock\sremoval\nroutine.
+D 2011-04-27T19:54:44.305
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 7a4d9524721d40ef9ee26f93f9bd6a51dba106f2
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -163,7 +163,7 @@ F src/os.h 9dbed8c2b9c1f2f2ebabc09e49829d4777c26bf9
 F src/os_common.h a8f95b81eca8a1ab8593d23e94f8a35f35d4078f
 F src/os_os2.c 4a75888ba3dfc820ad5e8177025972d74d7f2440
 F src/os_unix.c 2c67d126874b78eb427371db4793f0e8fbc7448b
-F src/os_win.c 0d2fb750f74e403b40286fd500882dcea93db275
+F src/os_win.c 4271f0bf733c0b45635ddcfb41c935573de8284c
 F src/pager.c 055239dcdfe12b3f5d97f6f01f85da01e2d6d912
 F src/pager.h 3f8c783de1d4706b40b1ac15b64f5f896bcc78d1
 F src/parse.y 12b7ebd61ea54f0e1b1083ff69cc2c8ce9353d58
@@ -930,7 +930,7 @@ F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/split-sqlite3c.tcl d9be87f1c340285a3e081eb19b4a247981ed290c
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 7b479b9bee93df909edecd44c7d6584d943b39c9
-R 896972878681caa8688ae0b699a33ade
+P 1bd1484cd7e09709d87aa84b82e87597d00a4162
+R 9628f97d1cf37de85ec8d2f9df941216
 U drh
-Z 901a5c52f94c833aabdd9b6dd2fd3b65
+Z cb18bd6131d197c3ee5b628d2860f479
index f22bfc0a4df77f32359d7719374c4ec9c2b77bfd..68e76d018c82725f63d39cc0e3f08136a21de026 100644 (file)
@@ -1 +1 @@
-1bd1484cd7e09709d87aa84b82e87597d00a4162
\ No newline at end of file
+f55156c5194e85c47728b8a97fde3e5f0a5c9b56
\ No newline at end of file
index cd7a69bce04e487b71db82932817a5e83e709152..4e91f7ab324f6208e4ec11aedcc5449982d203a4 100644 (file)
@@ -1052,7 +1052,7 @@ static int unlockReadLock(winFile *pFile){
     res = UnlockFile(pFile->h, SHARED_FIRST + pFile->sharedLockByte, 0, 1, 0);
 #endif
   }
-  if( res == 0 ){
+  if( res==0 && GetLastError()!=ERROR_NOT_LOCKED ){
     pFile->lastErrno = GetLastError();
     winLogError(SQLITE_IOERR_UNLOCK, "unlockReadLock", pFile->zPath);
   }