drh
99ab3b120e
Proof-of-concept prototype for the proposed xSetSystemCall extension method
...
on the VFS.
FossilOrigin-Name: 92b5a76abc53290e1bb87b6b55bc64bb1b331dfc
2011-03-02 15:09:07 +00:00
drh
0b52b7d0cd
Update all built-in VFSes to return SQLITE_OK for the
...
SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the
xFileControl methods to return SQLITE_NOTFOUND for unrecognized
operation codes.
FossilOrigin-Name: 6f2c72a0f6579db3f40c079436ca40e3e52bd6d9
2011-01-26 19:46:22 +00:00
shaneh
420398ce09
Reduce the amount of memory taken up by WAL mmaped regions under Windows.
...
FossilOrigin-Name: f213e133f6e69b0edd73d96142014bdcab9dfe41
2010-09-03 04:29:30 +00:00
shaneh
bd2aaf9ab1
Fix some compiler warnings under MSVC.
...
FossilOrigin-Name: afdc82a99eba260aed8ae2cca4bcec629f384098
2010-09-01 02:38:21 +00:00
shaneh
f7b5f855d7
Replicate asserts on unixOpen() to winOpen() in os_win.c.
...
FossilOrigin-Name: 40526d8390896ccb883c45afa70e7adb568d174f
2010-08-24 20:46:53 +00:00
dan
502019c8bb
Support FCNTL_CHUNK_SIZE on windows too.
...
FossilOrigin-Name: a038688c991435967b935946c2283707820bb5da
2010-07-28 14:26:17 +00:00
shaneh
d5a724000b
Added fix for race conditions from os_unix.c; added saving of errno in two places.
...
FossilOrigin-Name: 13ed106c8c279422a6159e28c6887d13a88b7b8b
2010-07-20 20:23:38 +00:00
drh
e11fedc589
Change the name of the xShmClose VFS method to xShmUnmap, everywhere.
...
FossilOrigin-Name: c2d27cf51d33e6f38bab37008d39074051f75274
2010-07-14 00:14:30 +00:00
dan
da9fe0c327
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap.
...
FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38
2010-07-13 18:44:03 +00:00
shaneh
1f3e27b29e
Updates to comments and code organization to reflect changes in os_unix.c;
...
Updated winShmLock() with logic changes from unixShmLock();
Modified IO error returns in winShmMap() to match those in unixShmMap();
FossilOrigin-Name: b73fe2754b68af4c76a1788aa18b93359720d1f1
2010-07-12 20:46:33 +00:00
shaneh
e2ad93173d
Changes to os_win.c to have it simulate IO errors like os_unix.c.
...
FossilOrigin-Name: 0d53da9451fe016adc57c7c077fdbbbdb1c8d6ee
2010-07-08 03:13:33 +00:00
shaneh
cce1b689f4
Fixed a new error introduced by last check-in of os_win.c. Updated xAccess() to support SimulateIOError().
...
FossilOrigin-Name: 8eefc287265443ec043bdab629597e79c9d22006
2010-07-07 14:45:40 +00:00
shaneh
7ea7259176
Fix minor issue in xAccess() method for Windows.
...
FossilOrigin-Name: 4bfd46f1db41009a1b925d61c6f074b933caa4ec
2010-07-07 13:58:11 +00:00
shaneh
133ce560c6
Modified the xWrite() method on Windows to differentiate between IO and disk full error returns.
...
FossilOrigin-Name: ca4b7ffbd44937a02ae62d606f9e1eb767075c22
2010-07-06 20:33:47 +00:00
drh
722a7e9ab3
Modify the VFS xAccess() method on winNT so that it returns false for
...
an exists test of a zero-length file. This makes the windows VFS work
the same as the unix VFS.
FossilOrigin-Name: ec35f25403744f7441ac5ae1486b84d8ebc13e98
2010-07-05 21:00:43 +00:00
drh
2667be5e3f
Remove the unused xRename() method from the sqlite3_vfs object.
...
Add better documentation on the xCurrentTimeInt64() method.
FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083
2010-07-03 17:13:31 +00:00
shaneh
fd28639f12
Changes to os_win.c to have it return same error code as os_unix.c.
...
FossilOrigin-Name: 33b6f069d8059903312282962181839ff983e5c4
2010-07-02 19:49:38 +00:00
shaneh
5eba1f60fe
Fix some warnings when compiling under MSVC.
...
FossilOrigin-Name: 708338773919fa024abbba55180654beb60e6d84
2010-07-02 17:05:03 +00:00
drh
d36f660d5b
Change the name of the shared-memory file on windows from *-wal-index to
...
*-shm, for consistency with unix.
FossilOrigin-Name: 5995cb15080cfb707ddda501f975673f658106f7
2010-06-25 12:52:47 +00:00
drh
bd9676c19e
Adjust the shared-memory locking range to account for the new version number
...
values in the wal-index header.
FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf
2010-06-23 17:58:38 +00:00
drh
b316cb22de
Fix the xCurrentTimeInt64 interface on windows. It was off by a factor of 10.
...
FossilOrigin-Name: 51ef43b9f7db8fabf73d9c8a76dae6c275e50d58
2010-06-23 15:18:11 +00:00
dan
8ce49d6ac0
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag.
...
FossilOrigin-Name: 5a5ff4e3e4c707464f227907d0aefb8ef42180dd
2010-06-19 18:12:02 +00:00
drh
6b017cc6d4
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems
...
to fit in there logically.
FossilOrigin-Name: 58dfd83d8b7905391e2a06bb918ffa209c6de6b5
2010-06-14 18:01:46 +00:00
dan
9785fc9510
Add the new xShmMap (formerly xShmPage) to os_win.c.
...
FossilOrigin-Name: 13e7a8242206bca4b5bf356ef074e66474d39609
2010-06-14 16:16:33 +00:00
drh
05cb5b244b
Performance fix for winShmClose().
...
FossilOrigin-Name: ed7774de04978803e979580240148eba1de9166d
2010-06-03 18:02:48 +00:00
drh
20e1f08e0b
Get the new xShmLock interface design working on os_win.c.
...
FossilOrigin-Name: 149a7082e266edf0dc25c23823a9e240f5285215
2010-05-31 16:10:12 +00:00
drh
026ac28b28
Change the semantics of xShmGet() such that it will never increase the size
...
of shared memory. xShmSize() must be used to grow the size of shared memory.
A shared memory segment size cannot be shrunk (except by dropping it).
FossilOrigin-Name: 72de00731245277b2209103ec0a76e3d4f56530e
2010-05-26 15:06:38 +00:00
drh
1b78eaf0ba
Update header comments in wal.c to correctly describe the WAL file format.
...
Update the locking region offsets in os_unix.c and os_win.c and add assert()
statement to verify that the locking region offsets are correct.
FossilOrigin-Name: 40030c0739f821ea8ee188c28c579507f10448bc
2010-05-25 13:40:03 +00:00
drh
286a288493
Add a new xShmBarrier method to the VFS - a shared-memory fence operation.
...
Implement the same in both unix and win32. Use it to make the WAL subsystem
more robust.
FossilOrigin-Name: 1bd011c9fed5ef29fb616b4d0a52df3b82221b1f
2010-05-20 23:51:06 +00:00
shaneh
7c767e1113
Merge WIN32 WAL support into trunk. Still some issues with locking to resolve.
...
FossilOrigin-Name: 43377663fc3569c361867cdea19e8abaf91a163f
2010-05-19 23:41:55 +00:00
drh
f5d6e478d3
Add the SQLITE_FCNTL_SIZE_HINT to the os_win.c VFS.
...
FossilOrigin-Name: 9894118d20c08951565c2096552d4a3d2413f7b0
2010-05-19 19:39:26 +00:00
drh
8323521440
Pull in all the latest changes from the trunk.
...
Update the win32 SHM methods to work with the new interface design.
FossilOrigin-Name: 4b69f2cd315b6b66d10e5190d235114788853258
2010-05-14 16:34:34 +00:00
drh
308c2a5c0f
Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fields
...
and variables in os_unix.c to be more meaningful and searchable.
FossilOrigin-Name: 5fe529f239cddbf4b7ea57abb02d95cc0d94f5f5
2010-05-14 11:30:18 +00:00
shaneh
50f6455f41
Updates to WAL support in os_win.c: pulled in latest changes from src/os_unix.c; updated tracing; misc. improvements.
...
FossilOrigin-Name: 76504726a1ef7f6a0445ec800776462138b22d72
2010-05-12 17:14:59 +00:00
shaneh
04882a9e4a
Initial port of WAL VFS support from os_unix.c to os_win.c.
...
FossilOrigin-Name: 111ad59f21d53d1ec63c084ca5f98f2aaf7cd070
2010-05-11 02:49:39 +00:00
drh
af75c8695b
Add the xShmRelease() method to the VFS. The os_unix.c implementation of
...
the shared memory logic is still non-functional.
FossilOrigin-Name: ed715b47c5f7657fbf901805981867898054b14d
2010-04-27 11:49:27 +00:00
drh
f2424c521b
Begin moving WAL-specific I/O into the VFS. This checkin contains VFS
...
infrastructure but it is untested and is not yet hooked up to the WAL.
The version number is bumped to 3.7.0 because of the VFS extension.
FossilOrigin-Name: f5e615c28c7035a7e6d896790b51cf9bc7371d5f
2010-04-26 00:04:55 +00:00
drh
9978c97ec5
Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging
...
output for CORRUPT, and CANTOPEN errors.
FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947
2010-02-23 17:36:32 +00:00
shane
f639c40f77
Fix compiler warnings on MSVC build.
...
FossilOrigin-Name: 01c4b5b84ec7ce589e20ea66e80011f092ab32f0
2009-11-03 19:42:30 +00:00
shane
ea5989276a
For Windows VFS, modified xGetLastError() to call FormatMessage()
...
with the FORMAT_MESSAGE_IGNORE_INSERTS option. Additionally updated
to ensure strings are returned as UTF8. Ticket 39c85e8a4e.
FossilOrigin-Name: 761396f8cb79be34853ba698a65af54874c3c10e
2009-10-21 02:00:47 +00:00
shane
11bb41f878
Fixed some warnings and an assert in the WINCE code when compiling under MSVC.
...
FossilOrigin-Name: f42ec993ac9d42ca31305f26b09924108c36d9f4
2009-09-10 20:23:30 +00:00
dan
3d6e060b48
Move error simulation code from the sqlite3_os_init() functions into a wrapper.
...
FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807
2009-08-17 15:52:25 +00:00
dan
e1ab219309
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly.
...
FossilOrigin-Name: 904a371c6c9d3f20332b37767b06161fa0a78113
2009-08-17 15:16:19 +00:00
shane
d87873d19b
Fixed some compiler warnings in WINCE only sections when using the MSVC compiler.
...
FossilOrigin-Name: 1f0a93e17d6291268da909699ce1a5a7619ae637
2009-08-12 15:34:02 +00:00
shane
338ea3c140
Simplified conditional for read-only lock in winceLockFile() function. Ticket #3991 . (CVS 6958)
...
FossilOrigin-Name: a1c184cd2ac5a7559d787e6c34b1d0ce034d10cf
2009-08-05 04:08:29 +00:00
shane
68d405e25a
os_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing modes in the same manner as os_unix.c. Ticket #3821 . (CVS 6542)
...
FossilOrigin-Name: 18fef3fcf61c137a89a83352f6769ed06845434a
2009-04-23 19:08:32 +00:00
shane
7a8537b4a5
Fix access violation on WinCE platforms. Ticket #3804 . (CVS 6509)
...
FossilOrigin-Name: e203ad400dd61431b3e6b8219eb5357b6ca06561
2009-04-15 14:36:25 +00:00
chw
a5dc7f73f9
Provide dummy DWORD arguments to output parameters of GetDiskFreeSpace(A|W),
...
NULL causes access violations on Windows NT 4.0 (CVS 6477)
FossilOrigin-Name: 5350a6586cd6504a0724631e4ef46245832435f9
2009-04-09 14:27:06 +00:00
shane
b08a67a772
Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417)
...
FossilOrigin-Name: 768514179a63783c4e70b931d1697403c04bedf5
2009-03-31 03:41:56 +00:00
drh
a111577b6b
Make sure recursive calls to winOpen() preserve the pVfs pointer.
...
Fault found while testing a mingw build in VMWare. (CVS 6410)
FossilOrigin-Name: 18b44f0df3d75689fb5cee20120eb3c6ae5882b3
2009-03-30 13:04:17 +00:00