]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add a comment to xUnfetch on windows to say that the call to winUnmapfile()
authordrh <drh@noemail.net>
Mon, 1 Apr 2013 18:25:48 +0000 (18:25 +0000)
committerdrh <drh@noemail.net>
Mon, 1 Apr 2013 18:25:48 +0000 (18:25 +0000)
might be unnecessary.

FossilOrigin-Name: e3c63c31a21b27806592d066a013a111b280c61f

manifest
manifest.uuid
src/os_win.c

index d43ccc6be34d71f4dcf04a910ac1719d698214b0..9d43650636e1cde27a1c1493d2ad277f845d0178 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C In\swindows,\sround\sdown\sthe\ssize\sof\sthe\smemory\smapped\sregion\sto\sthe\snext\nsmaller\smultiple\sof\sthe\spage\ssize.
-D 2013-04-01T18:15:50.853
+C Add\sa\scomment\sto\sxUnfetch\son\swindows\sto\ssay\sthat\sthe\scall\sto\swinUnmapfile()\nmight\sbe\sunnecessary.
+D 2013-04-01T18:25:48.030
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in df3e48659d80e1b7765785d8d66c86b320f72cc7
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -161,7 +161,7 @@ F src/os.c 809d0707cec693e1b9b376ab229271ad74c3d35d
 F src/os.h ae08bcc5f6ec6b339f4a2adf3931bb88cc14c3e4
 F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04
 F src/os_unix.c d136eca0cff2f8a5ac2f45867d5e5153d60e377c
-F src/os_win.c 4cb9b2621f4869e17c8caa627903dc114b1dfb37
+F src/os_win.c a2f41c9dfb9b065285ba94d4a40a31ca2e2b6ea3
 F src/pager.c 2b9980e87296812a6ce51121a3335550ae25e3ec
 F src/pager.h 5cb78b8e1adfd5451e600be7719f5a99d87ac3b1
 F src/parse.y 5d5e12772845805fdfeb889163516b84fbb9ae95
@@ -1040,7 +1040,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac
-P 5f4437c0e35c8aa740515aac3e81e0146716d2bb
-R bde1c152af7414f4a8d87d63f33cdc11
+P 0e44ed1badde6d766f18d1373d968e5b286b15bd
+R 8c3ade0fe410bf8f08819b27491eb958
 U drh
-Z 9887751c05c44b393c15dab1850774d3
+Z 1d97c5c3c6a55788c16fe769f3e976ae
index 91d9770506fb598060926eb84b6e61e9a30b031c..224e9238f1cfc5a368e99a0dfe91aa1a197c934b 100644 (file)
@@ -1 +1 @@
-0e44ed1badde6d766f18d1373d968e5b286b15bd
\ No newline at end of file
+e3c63c31a21b27806592d066a013a111b280c61f
\ No newline at end of file
index 6965ee90bba78ff16ee04d4d00bff52b46cbe5ae..ee7a71018e9cbdd36073dba7471ac02a563a3cf8 100644 (file)
@@ -3676,6 +3676,10 @@ static int winUnfetch(sqlite3_file *fd, i64 iOff, void *p){
   if( p ){
     pFd->nFetchOut--;
   }else{
+    /* FIXME:  If Windows truly always prevents truncating or deleting a
+    ** file while a mapping is held, then the following winUnmapfile() call
+    ** is unnecessary can can be omitted - potentially improving
+    ** performance.  */
     winUnmapfile(pFd);
   }