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
0e9365ced3
Log all error from close() in os_unix.c to sqlite3_log() but do not attempt to
...
report errors back up to the application. Update the unix error logging to
put the most important information earlier in the message.
FossilOrigin-Name: 7b6e30e6a712311d4ef275253b085b85e6e17116
2011-03-02 02:08:13 +00:00
drh
30f776fadb
Comment out some code in os_unix.c that only runs on MacOSX with
...
SQLITE_ENABLE_LOCKING_STYLE.
FossilOrigin-Name: 4e50b0362ab6604a4b6c9f4ad849ec1733d6ce1a
2011-02-25 03:25:07 +00:00
drh
5c81927c9d
Fix a typo in the robust_flock() macro for systems without EINTR.
...
FossilOrigin-Name: af9ba2a6d2c37915e799eec52bb827de46afd34d
2011-02-23 14:00:12 +00:00
drh
ff81231e62
Retry selected system calls on unix when they fail with EINTR.
...
FossilOrigin-Name: b9d29ea385bafcf87c7dd07822ce9ec3d3892bd1
2011-02-23 13:33:46 +00:00
dan
e18d495315
Have os_unix.c call sqlite3_log() following errors in certain system calls.
...
FossilOrigin-Name: 01076528a43b61ae20ef6969b7d326de9b5313e4
2011-02-21 11:46:24 +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
drh
b469f46083
Do not include <sys/mmap.h> if SQLITE_OMIT_WAL is defined.
...
FossilOrigin-Name: b82e85ece94c8e25c1dc3251f5444a295fbf8c89
2010-12-22 21:48:50 +00:00
drh
29ecd8a077
Rearrange a variable declaration in the proxy locking code to avoid a harmless
...
compiler warning on recent MacOS versions.
FossilOrigin-Name: 39bbd35599e735b32f7ed18143073165b805dd98
2010-12-21 00:16:40 +00:00
dan
3239053e69
Fix a warning in os_unix.c.
...
FossilOrigin-Name: ee8dc8c87ed15b76ba437df23e1d7b1b7fa30296
2010-11-29 18:36:22 +00:00
dan
0cb3a1eca4
Fix compiler warnings discovered while building SQLite on [ http://www.devio.us/ ].
...
FossilOrigin-Name: 5602ec95aa2a74d0624bb6c7d53e7a0d35536253
2010-11-29 17:55:18 +00:00
dan
15eac4e48a
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.
...
FossilOrigin-Name: 3df3e79b56821201b4f5ecd23f94d485745c48c3
2010-11-22 17:26:07 +00:00
dan
a0c989dde7
Fix os_unix.c so that it works with the test_multiplex module.
...
FossilOrigin-Name: 72ba3e368bec34532ec7b5e856a4daa7e1c8cccb
2010-11-05 18:07:37 +00:00
drh
f7f55edb68
Do not embedded #if inside an assert() statement.
...
Fix for check-in [dca8763872a]
FossilOrigin-Name: d7d4a94fc1209fd32d7c8e20ac83eb169b81ee25
2010-10-05 18:22:47 +00:00
dan
0015739ae5
Fix an assert() failing on OSX.
...
FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d
2010-10-05 11:33:15 +00:00
drh
e8b0c9b4ee
Do not call gethostuuid() on MacOS 10.4 and earlier, since it is not
...
supported there.
FossilOrigin-Name: 44deaaefeeb95827daeaf84aa5e205b456e75b40
2010-09-25 14:13:17 +00:00
drh
37e8b5b2cc
Fix the computation of the offset on the mmap() for the Nth shared memory
...
region. Because of the way shared memory is accessed, the old computation,
though wrong, still happened to always get the right answer. Nevertheless,
it is good to do the computation correctly.
FossilOrigin-Name: 36397f62f2e3a62b4d5730b29c197449c6850cac
2010-09-02 14:00:19 +00:00
drh
d56b121d10
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.
...
FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e
2010-08-11 06:14:15 +00:00
dan
502019c8bb
Support FCNTL_CHUNK_SIZE on windows too.
...
FossilOrigin-Name: a038688c991435967b935946c2283707820bb5da
2010-07-28 14:26:17 +00:00
dan
6e09d69c92
Add experimental unix-only file-control to grow and truncate the database file by a configurable chunk size.
...
FossilOrigin-Name: 7cf0e851d4c5e826ea22ed08291b7c91d7b1abc7
2010-07-27 18:34:15 +00:00
dan
0668f5916e
Fix a race condition in os_unix.c that may occur when one thread is opening a connection to a shared-memory block and another is either closing or locking the same shared-memory.
...
FossilOrigin-Name: 3b7330c19a5327322068e9460018fe0152b8ac87
2010-07-20 18:59:00 +00:00
drh
8ab58665bc
Previous check-in [534aab837e] accidently reverted some
...
changes from [a121cd80c5]. This check-in restores those changes.
FossilOrigin-Name: abff795f38e33d778c8dd494a601bc029237da9e
2010-07-15 18:38:39 +00:00
drh
a4ced195db
Optionally support shared-memory in /dev/shm or other tmpfs directory
...
using an unsupported compile-time option.
FossilOrigin-Name: 534aab837e5a34fd58963ab2b505bfbb9da2e8ee
2010-07-15 18:32:40 +00:00
dan
c74e4ef4c7
When creating a journal file on unix, attempt to create it with the same permissions as the associated database file.
...
FossilOrigin-Name: a121cd80c5ac94e5977bc3164d2500e0ea132fed
2010-07-15 14:59:37 +00:00
drh
f65bc9119c
Fix a typo in a comment in os_unix.c.
...
FossilOrigin-Name: e1e7312580a8b19825b0c52fa8af6c9382f99f22
2010-07-14 20:51:34 +00:00
dan
ddb0ac4b9f
On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file.
...
FossilOrigin-Name: e5d180eed245437b61bfb257ee01e2571c93afe7
2010-07-14 14:48:58 +00:00
drh
5d4feffe7d
Fix the unix driver to return an I/O error if unlink fails for any reason
...
other than the file not existing in the first place.
FossilOrigin-Name: 90d73c66bfa880cdeb688b3016c8b1c58bfcf35f
2010-07-14 01:45:22 +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
drh
6e1f482824
Tweaks to the new shared-memory interface design - mostly comment changes.
...
FossilOrigin-Name: 6336de7aa96a6e1e68cc123e5d5f485d790d95a2
2010-07-13 23:41:40 +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
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
drh
0ab216a6b4
Fix compiler warnings in the proxy locking code.
...
FossilOrigin-Name: 26c7689cfedf03e65bcd51df68d128101ed2c1ec
2010-07-02 17:10:40 +00:00
drh
ff82894faa
Suppress various compiler warnings.
...
FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd
2010-06-26 21:34:06 +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
dan
248af428ea
Merge latest trunk change.
...
FossilOrigin-Name: f6d26e07b70965e332b1589804ca938593a5f432
2010-06-21 06:00:15 +00:00
drh
19515c8da1
Fix an uninitialized variable in os_unix.c.
...
FossilOrigin-Name: 822a0283c6bc1c75001f3d1c528a4ff89c6b039c
2010-06-19 23:53:11 +00:00
drh
7234c6d6f6
Change the unix VFS to always allocate shared-memory using a file in the
...
same directory as the database. Otherwise, a chroot might cause different
processes to use different shared memory files resulting in database
corruption.
FossilOrigin-Name: 2241788bc85fbc48e9cfecb95fe0a858338e37cb
2010-06-19 15:10:09 +00:00
dan
83acd423a1
Change the implementation of the unix implementation of xAccess() so that it returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size.
...
FossilOrigin-Name: 077b0e5bcd849130c8df373fc2134c4b44351882
2010-06-18 11:10:06 +00:00
dan
b0ac3e3a17
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method.
...
FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01
2010-06-16 10:55:42 +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
dan
188019153d
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.
...
FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc
2010-06-14 14:07:50 +00:00
dan
13a3cb82ce
Experimental change to the xShmXXX parts of the VFS interface.
...
FossilOrigin-Name: ca68472db01c14a899892007d1cbaff5e86ae193
2010-06-11 19:04:21 +00:00
dan
7df6c2c04b
In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the associated file descriptor.
...
FossilOrigin-Name: 95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc
2010-06-07 19:26:54 +00:00
drh
c11895b808
Make sure the directory used by os_unix.c for shared-memory files is always
...
the same, regardless of individual client permissions and environment
variable settings.
FossilOrigin-Name: f97bd520f06a16c61ccdd9ebeda7e138896b9ac2
2010-06-02 15:59:05 +00:00
drh
aab4c02e47
Changes to make WAL more robust against SHM locking failures and OOM errors.
...
FossilOrigin-Name: ebf4041383c3cdddb5861960359abd209d4a1028
2010-06-02 14:45:51 +00:00
drh
8b3cf82ddf
The shared-memory used by WAL on linux now really is shared memory in /dev/shm.
...
On other unix flavors, the file is in a temporary directory rather than in the
same directory as the database.
FossilOrigin-Name: fc18c4aadb908c3b6f9b6481a2efca6a0daadc64
2010-06-01 21:02:51 +00:00
dan
72bcac9ca7
Do not hold the shared-memory mutex in os_unix.c if returning NULL.
...
FossilOrigin-Name: 9622dd468c8914262e9d8bd8dbca9e22ec6ee75c
2010-06-01 11:08:56 +00:00
drh
b29ad8502e
Fix os_unix.c so that it will compile and build on a Mac.
...
FossilOrigin-Name: bc707c83e5f9849d9d201d695d0d071ca9ed93cb
2010-06-01 00:03:57 +00:00
drh
61e4acecf4
Fix issues with locking_mode=EXCLUSIVE in WAL.
...
FossilOrigin-Name: 8deba0cebd135a18da68530fab9e7d19dc21ddcb
2010-05-31 20:28:37 +00:00