/ File History
Login

History of src/os_unix.c

2017-12-13
20:35
An improved way of generating the SQLITE_READONLY_DIRECTORY error. The error message submitted to sqlite3_log() is still correct this way. file: [7fc27353] check-in: [1c0aa919] user: drh branch: trunk, size: 264299
20:02
New result code SQLITE_READONLY_DIRECTORY is returned when an attempt is made to write on a database file that is in a read-only directory and hence the journal file could not be created. This situation formerly returned SQLITE_CANTOPEN, which less helpful. file: [1ec93909] check-in: [3ec73c38] user: drh branch: trunk, size: 264353
10:11
Minor enhancement to two assert() statements in the default VFSes. file: [a40e2926] check-in: [9cede8a8] user: drh branch: trunk, size: 264088
2017-12-09
01:02
Fix a harmless API signature mismatch in the unix VFS. file: [888afdea] check-in: [bab9de7f] user: drh branch: trunk, size: 264088
2017-11-14
21:06
Fix a typo that prevented successful builds on macs. file: [fcbdfbba] check-in: [adf83060] user: drh branch: apple-osx, size: 302600
20:36
Merge the patch that enables reading a read-only WAL-mode database, without any special query parameters, as long as the -shm and -wal files are on disk. file: [50b62dad] check-in: [8c2a769c] user: drh branch: apple-osx, size: 302608
20:00
Merge all changes from trunk prior to the read-only WAL enhancement. file: [b8167023] check-in: [1754faef] user: drh branch: apple-osx, size: 301707
2017-11-08
17:32
Change the name of SQLITE_READONLY_CANTLOCK to SQLITE_READONLY_CANTINIT. file: [e87cef0b] check-in: [6d7f94fa] user: drh branch: readonly-wal-recovery, size: 264090
2017-11-07
15:43
On unix, if the *-shm file cannot be opened for read/write access, open it read-only and proceed as if the readonly_shm=1 URI option were specified. file: [7de92801] check-in: [ba718754] user: dan branch: readonly-wal-recovery, size: 264090
2017-11-06
20:02
Merge latest trunk changes into this branch. file: [1f10b358] check-in: [7f217eda] user: dan branch: begin-concurrent, size: 263347
2017-11-03
17:17
Allow readonly_shm connections to access the *-shm file using read() even if it is unable to take a DMS lock. file: [7cc36e2b] check-in: [9b0d5c4f] user: dan branch: fcntl_shm_read, size: 265429
2017-11-01
20:59
If a readonly_shm connection cannot map the *-shm file because no other process is holding the DMS lock, have it read from the database file only, ignoring any content in the wal file. file: [e376adf6] check-in: [ce5d13c2] user: dan branch: readonly-wal-recovery, size: 264090
06:59
Fix a race condition in os_unix.c that might allow a client to use a *-shm file corrupted by a power failure if another client fails between locking the *-shm file and truncating it to zero bytes. file: [9137cfdb] check-in: [d655bfab] user: dan branch: readonly-wal-recovery, size: 263473
2017-10-26
17:34
Fix an error in the previous commit on this branch. file: [9bf0c1b7] check-in: [f71dfee0] user: dan branch: readonly-wal-recovery, size: 262545
17:05
Instead of extra locks, use F_GETLK to ensure that readonly_shm clients cannot connect to a wal-mode database if there are no writers. file: [8103f603] check-in: [5492f457] user: dan branch: readonly-wal-recovery, size: 262549
2017-10-25
23:28
Use extra locks to prevent a readonly_shm=1 process from connecting to a WAL-mode database if there are no writers. file: [bec568f6] check-in: [35d97908] user: drh branch: readonly-wal-recovery, size: 263004
16:14
Do not reference the ioctl() system call in the unix backend unless it is actually needed by the Batch Atomic Write extension. This should allow the build to work on VxWorks. file: [7edc8727] check-in: [adfa7ed2] user: drh branch: trunk, size: 261940
2017-10-24
19:12
Merge all enhancements and fixes from the 3.21.0 release. file: [c702163c] check-in: [13be3a44] user: drh branch: apple-osx, size: 301563
2017-10-04
20:57
Add experimental mode that uses two wal files. Activated using "PRAGMA journal_mode = wal2". file: [1f9c3e77] check-in: [e2fc5c81] user: dan branch: wal2, size: 261808
2017-09-22
11:09
Cherrypick [ec37ad6d08] into this branch. With this patch, if SQLITE_SHARED_MAPPING is defined at build-time SQLite will use a single memory mapping for multiple connections to the same database file within a single process. file: [1b2203f3] check-in: [c7a5880d] user: dan branch: begin-concurrent, size: 263203
2017-09-18
08:51
Merge latest trunk changes with this branch. file: [dffae52f] check-in: [2e573350] user: dan branch: shared-mapping-hack, size: 263242
2017-09-14
21:12
Add another test case for the problem fixed by the previous commit. file: [3984fc06] check-in: [1a7e0b61] user: dan branch: trunk, size: 261796
20:41
Avoid an out-of-bounds read that can be caused by a specially constructed journal file. file: [0e365b4c] check-in: [cf5bf42c] user: dan branch: trunk, size: 261751
2017-09-12
18:11
Merge the mutex-free PRNG change into this branch. file: [e29ad5a4] check-in: [8b1fc4b9] user: dan branch: shared-mapping-hack, size: 263651
18:03
Hack to have multiple connections to a single file share a single memory mapping of the databse file. file: [f36ad99b] check-in: [ec37ad6d] user: dan branch: shared-mapping-hack, size: 263645
2017-09-09
06:10
Merge trunk enhancements file: [d63e84b1] check-in: [6a0b9d9d] user: drh branch: apple-osx, size: 301972
2017-08-22
15:21
Fix error tests in seldom-used compile-time branches of the unix backend. file: [489aa972] check-in: [885c2b44] user: drh branch: trunk, size: 262205
2017-08-18
16:09
For the unix VFS, avoid an unnecessary stat() system call prior to opening any file in the common case where there are no unused file descriptors. file: [0a7730f6] check-in: [3075cfa0] user: drh branch: trunk, size: 262229
2017-08-16
16:52
Enhance this branch to support page-level-locking (without MVCC) for multi-process deployments. file: [6947c0fc] check-in: [04e0cb57] user: dan branch: server-process-edition, size: 268624
2017-08-14
06:55
Update this branch with latest trunk changes. file: [24e4b7f6] check-in: [bc2498d6] user: dan branch: server-process-edition, size: 262888
2017-08-07
19:06
On Windows, avoid casting a value larger than 2^31 to a (SIZE_T) on systems where it is a 32-bit type. file: [a3612737] check-in: [f08d63b4] user: mistachkin branch: mmap-size-limit, size: 261829
18:54
Fix a problem with handling SQLITE_FCNTL_MMAP_SIZE requests with a negative parameter in os_unix.c. file: [47b6c1e5] check-in: [4249fcf7] user: dan branch: mmap-size-limit, size: 261807
18:13
Avoid casting a value larger than 2^31 to a (size_t) on systems where it is a 32-bit type. file: [bbe39b59] check-in: [46c3085d] user: dan branch: mmap-size-limit, size: 261793
14:15
Update this branch with latest trunk changes. file: [a2956104] check-in: [17bc7ded] user: dan branch: server-process-edition, size: 262612
2017-07-28
13:18
Add new extended error codes for the atomic write file-controls. file: [0681c6ef] check-in: [94a20047] user: drh branch: batch-atomic-write, size: 261553
2017-07-27
18:34
Do not set device-capabilities flags SEQUENTIAL or SAFE_APPEND for f2fs file-systems. file: [9aa19db9] check-in: [4477e60c] user: dan branch: batch-atomic-write, size: 261510
2017-07-24
19:23
Only open a db in server-mode if there is a directory named "db-journal" in the file-system and the VFS is an exclusive locking VFS. file: [98df292b] check-in: [e77d29f6] user: dan branch: server-process-edition, size: 260520
2017-07-22
16:00
Omit unused batch-atomic-write code if SQLITE_ENABLE_BATCH_ATOMIC_WRITE is not defined. file: [9e7300ba] check-in: [a89b62c4] user: drh branch: batch-atomic-write, size: 261618
2017-07-21
21:06
Use ioctl(F2FS_IOC_GET_FEATURES) to determine whether or not atomic batch writes are available. file: [7feae9ca] check-in: [532bbf1f] user: dan branch: batch-atomic-write, size: 261235
2017-07-20
19:49
Add support for F2FS atomic writes. Untested at this point. file: [eca7004f] check-in: [416973ed] user: dan branch: batch-atomic-write, size: 261133
2017-07-07
20:33
Avoid even trying to open a SHM file read/write in WAL mode if we know that the file is read-only. This avoids scare security log messages. file: [4193a7dc] check-in: [d9d92781] user: drh branch: apple-osx, size: 299228
2017-06-27
20:23
Support clients within a single process only. file: [d3c3a186] check-in: [dfa9a4d5] user: dan branch: server-process-edition, size: 259649
2016-12-12
16:15
Merge all the latest performance enhancements from trunk. file: [4a58dfdf] check-in: [a24f805b] user: drh branch: apple-osx, size: 298937
2016-12-05
20:06
Work around a bug in the definition of "ino_t" on some versions of Android. file: [30e2c43e] check-in: [8df492c1] user: drh branch: trunk, size: 259461
2016-11-17
14:02
When opening the *-shm file for a readonly database, try to open it in read-write mode before falling back to readonly. This is in case some other read/write connection within the same process uses the same file descriptor. file: [ab6fb769] check-in: [a07c581e] user: dan branch: apple-osx, size: 298497
2016-09-07
18:20
Merge recent enhancements from trunk. file: [5f558f94] check-in: [00759af0] user: drh branch: apple-osx, size: 297801
2016-08-11
18:05
Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum(). file: [be9ca0f9] check-in: [ed406d31] user: dan branch: trunk, size: 259021
2016-07-29
14:23
Use __sync_synchronous(), when available, instead of a mutex when a memory barrier is needed. file: [e7157dfa] check-in: [7d4562e9] user: drh branch: debug, size: 256148
2016-05-02
15:00
Merge enhancements and bug fixes from trunk. file: [defa2c6c] check-in: [f52765ee] user: drh branch: apple-osx, size: 297008
2016-04-29
20:30
Fix the temporary directory search algorithm for unix so that it fails gracefully even if all candidate directories are inaccessible. This fixes a bug that was introduced by check-in [9b8fec60d8e]. file: [a9443cda] check-in: [614bb709] user: drh branch: trunk, size: 258228
17:07
Fix the nolock VFS so that it supports shared memory. file: [dc9694fd] check-in: [ce11f8e8] user: drh branch: apple-osx, size: 297010
15:52
Merge enhancements from trunk, and in particular the TEMP file deferred I/O enhancements. file: [5b824866] check-in: [81b76901] user: drh branch: apple-osx, size: 297010
2016-04-26
18:58
The pcache and the built-in VFSes should not use mutexes when SQLITE_CONFIG_SINGLETHREAD is set. file: [8422fba2] check-in: [12418b10] user: drh branch: trunk, size: 258230
2016-04-23
20:59
Fix the fix to the temporary directory search algorithm so that it continues to return "." as a fallback if that directory has the correct permissions. file: [2488a2b6] check-in: [b38fe522] user: drh branch: trunk, size: 258172
2016-04-21
23:37
Change the temporary directory search algorithm on unix so that directories with only -wx permission are allowed. And do not allow "." to be returned if it lacks -wx permission. file: [c96826e2] check-in: [67985761] user: drh branch: trunk, size: 258171
15:35
Merge all recent enhancements from trunk. file: [4e279d41] check-in: [a15c49ae] user: drh branch: apple-osx, size: 296884
2016-04-18
13:09
The last parameter to pread64() and pwrite64() should be off64_t, not off_t. file: [d0b41a47] check-in: [3a7d7298] user: drh branch: trunk, size: 258104
2016-04-07
13:45
Update comments on the unix file locking protocol. No changes to code. file: [bde4844f] check-in: [716b20de] user: drh branch: trunk, size: 258102
2016-03-29
10:30
Merge 3.12.0 changes. file: [547157da] check-in: [eef55744] user: drh branch: apple-osx, size: 296799
2016-03-21
16:06
Remove an unreachable branch from the unlink verification logic in the UNIX VFS. file: [b1ccb273] check-in: [4dc30cce] user: drh branch: trunk, size: 258019
14:52
Merge the sqlite3_system_errno() change from trunk. file: [a721d5d9] check-in: [063f1b37] user: drh branch: apple-osx, size: 296842
2016-03-18
00:58
Merge recent enhancements from trunk. file: [91e743e4] check-in: [ec052b4f] user: drh branch: apple-osx, size: 297015
2016-03-17
16:01
Experimental implementation of the sqlite3_system_errno() interface. file: [50103f69] check-in: [6782c87b] user: drh branch: sqlite_system_errno, size: 258062
2016-03-16
19:10
Avoid a few unnecessary fstat()s on journal files. file: [4bde1192] check-in: [dbf84705] user: drh branch: trunk, size: 258235
2016-03-04
14:57
Merge recent enhancements from trunk, and especially the changes that reduce the heap-memory footprint of schemas, and defer opening and writing to statement journals. file: [4547ba82] check-in: [2f0c195c] user: drh branch: apple-osx, size: 296902
03:14
Further fixes to the pread()/pwrite() enabling logic. file: [f5bac8e7] check-in: [38fb54e7] user: drh branch: pread, size: 258122
03:02
Fix the build for cases when pread()/pwrite() are not available. file: [14a28aeb] check-in: [7d67d876] user: drh branch: pread, size: 258133
02:38
Update the configure script to detect pread/pwrite and update os_unix.c to use those routines if they are available. file: [a1aaf2d8] check-in: [2cffb9e5] user: drh branch: pread, size: 258271
2016-02-18
01:36
Merge recent performance enhancements and the enhanced API_ARMOR from trunk. file: [df8e4347] check-in: [b7fa0fb3] user: drh branch: apple-osx, size: 296582
2016-02-13
23:43
Enhance ability to debug out-of-memory errors. file: [3a6f2073] check-in: [6a9c4a3e] user: mistachkin branch: noMemBkpt, size: 257802
2016-02-05
14:29
Merge OOM handling optimizations and PRAGMA synchronous=EXTRA as well as other enhancements from trunk. file: [20b22469] check-in: [201fcbee] user: drh branch: apple-osx, size: 296487
2016-02-04
09:48
Refinements to synchronous logic: (1) Use PAGER_SYNCHRONOUS_FULL rather than the corresponding magic number. (2) Honor SQLITE_NO_SYNC on xDelete calls with sync (3) Count xDelete syncs during testing (4) Fix #ifs on SQLITE_EXTRA_DURABLE so that directory syncs on journal unlink are off by default. file: [821ed110] check-in: [e3157cb5] user: drh branch: trunk, size: 257707
2016-02-02
02:30
Merge recent enhancements from trunk. file: [fb027e79] check-in: [e6a4a163] user: drh branch: apple-osx, size: 296530
2016-01-26
13:56
Ensure that unixFullpathname() always nul-terminates its output buffer, even when returning an error. file: [5bb20172] check-in: [4a438556] user: dan branch: follow-symlinks, size: 257750
00:12
Remove an unused variable. file: [e9e1e6a4] check-in: [1c2656c1] user: drh branch: follow-symlinks, size: 257533
2016-01-25
18:43
Only use lstat() if the HAVE_LSTAT macro is defined. Fix some test file issues. file: [4c217111] check-in: [8a6e4147] user: dan branch: follow-symlinks, size: 257596
18:05
Simplify the unixFullpathname() function. This adds a dependency on lstat(). file: [6604e7f9] check-in: [f71249d3] user: dan branch: follow-symlinks, size: 257455
17:04
Fix issues on unix with opening database files via symlinks that are not in the current working directory. And with nested symlinks. file: [cf524029] check-in: [80398fd4] user: dan branch: follow-symlinks, size: 259195
2016-01-22
19:44
Reenable the xCurrentTime and xGetLastError methods on the unix VFSes as long as SQLITE_OMIT_DEPRECATED is not defined. file: [0eb7f469] check-in: [c11c85fd] user: drh branch: trunk, size: 256943
2016-01-14
15:03
Merge the latest enhancements and fixes from trunk. file: [9d109ca9] check-in: [d85774e0] user: drh branch: apple-osx, size: 295704
2016-01-12
00:37
Various #ifdef enhancements for improved VxWorks support. file: [b509b49b] check-in: [75cd41ff] user: drh branch: trunk, size: 256924
2016-01-11
12:49
Merge enhancements from trunk, and in particular the WAL overwrite feature. file: [cda640ef] check-in: [79125ec9] user: drh branch: apple-osx, size: 295456
2016-01-08
22:31
Typo fix in the previous commit. file: [82986e1e] check-in: [52c16603] user: drh branch: trunk, size: 256676
22:18
More #ifdef fixes for the unix VFS. file: [08535292] check-in: [122c111e] user: drh branch: trunk, size: 256677
19:17
Fix a problem with #ifdefs on the system calls in the unix VFS that causes problems when compiling with SQLITE_OMIT_WAL. file: [0b8ed82a] check-in: [ceceea4c] user: drh branch: trunk, size: 256544
2015-12-11
12:53
Merge recent trunk enhancements, and in particular the snapshot interface. file: [90d83aaa] check-in: [7e7b2406] user: drh branch: apple-osx, size: 295057
2015-12-08
14:37
Avoid unnecessary work inside of verifyDbFile() in the unix VFS. file: [2f3bb1da] check-in: [f3c0579e] user: drh branch: unix-vfs-optimization, size: 256390
2015-12-07
18:18
Fix the openDirectory() routine in the unix VFS so that it works for databases located in the root of the filesystem and for database files that have no pathname at all. file: [0ca6d871] check-in: [e7ae120d] user: drh branch: trunk, size: 256277
2015-12-03
20:42
Cleaner code and additional comments on the handling of 8+3 filenames when trying to find the name of a database file based on its journal filename, in the unix VFS. file: [25637346] check-in: [9e489a71] user: drh branch: trunk, size: 256209
2015-12-02
20:22
Merge all recent trunk enhancements, especially the unix VFS changes. file: [325d2917] check-in: [e1fb33c7] user: drh branch: apple-osx, size: 294757
17:40
Fix an incorrect, though harmless, assert() in the unix VFS. file: [60997373] check-in: [4692ae84] user: drh branch: trunk, size: 255977
15:44
Remove an unreachable branch from the unixMapfile() routine of the unix VFS. file: [b2482c40] check-in: [b50f67bc] user: drh branch: trunk, size: 255976
13:11
Minor simplifications to the unix VFS. file: [2b65298b] check-in: [2f13c16b] user: drh branch: trunk, size: 255911
02:33
Change the SQLITE_NO_SYNC compile-time option to call fstat() in place of fsync() rather than being a total no-op. file: [badd3d7b] check-in: [f64ea8a0] user: drh branch: trunk, size: 255986
02:08
Fix a (harmless) off-by-one error in the unix VFS logic that fsync()s a directory after deleting a file. file: [27a7ead7] check-in: [3d02711a] user: drh branch: trunk, size: 255807
01:04
Simplification of the logic used to take the process-wide lock in the unix-excl VFS. file: [207fef7c] check-in: [73defd52] user: drh branch: trunk, size: 255807
00:05
Remove all traces of SQLITE_FCNTL_WAL_BLOCK from the unix VFS - that feature had been disabled for a long time and never actually worked. file: [8f8f11b6] check-in: [e1d5320c] user: drh branch: trunk, size: 255853
2015-12-01
22:09
Simplification to the posix_fallocate() replacement used for the SQLITE_FCNTL_SIZE_HINT file control in the unix VFS. file: [5808a077] check-in: [74934d3f] user: drh branch: trunk, size: 256186
16:21
Simplification to the read and write primatives in the unix VFS. file: [7d56433a] check-in: [9eefa449] user: drh branch: trunk, size: 256349
2015-11-30
22:22
Fix a problem in xFullPathname for the unix VFS. The problem was found by Kostya Serebryany using libFuzzer. file: [88d9fd1d] check-in: [bb1e2c4d] user: drh branch: trunk, size: 256456
20:36
The EOVERFLOW errors from fstat() is not possible unless SQLite has been compiled with SQLITE_DISABLE_LFS. file: [641b7da6] check-in: [8cfb7a50] user: drh branch: trunk, size: 256382
00:05
Simplifications to the locking logic in the unix-dotfile VFS. file: [d4ca37d4] check-in: [58381352] user: drh branch: trunk, size: 256345
2015-11-28
21:49
Improvements to temporary file creation logic in the unix VFS. file: [951ef130] check-in: [d6e177fd] user: drh branch: trunk, size: 256985
2015-11-26
10:37
Simplify logic for syncing directories after creating or deleting a file in the unix VFS. file: [8b35dc3b] check-in: [eb180b4f] user: drh branch: trunk, size: 257028
02:21
Small simplification to the xOpen method in the unix VFS. file: [9b3a586e] check-in: [96e7d638] user: drh branch: trunk, size: 256995
2015-11-25
23:13
Simplify the temporary filename generator and the time-of-day functions in the unix VFS. file: [3f22d7f2] check-in: [6c5621ce] user: drh branch: trunk, size: 256955
18:03
Make the xAccess method of the unix VFS smaller and faster. file: [066d6f8e] check-in: [191aef98] user: drh branch: trunk, size: 257376
15:15
Remove unused methods from the unix VFS. file: [a6ed7d9a] check-in: [228bd15b] user: drh branch: trunk, size: 257504
14:00
Simplification of the error code translator in os_unix.c. Code cleanup only. The logic is unchanged. file: [cedce5fd] check-in: [2a20f793] user: drh branch: trunk, size: 257380
2015-11-24
16:40
Remove from os_unix.c pointless logic that tries to prevent a recurrence of a warning message that can only occur once. file: [80ec4975] check-in: [20256177] user: drh branch: trunk, size: 258819
15:12
Fix a comment typo in the unix VFS. No changes to code. file: [3ca4a23d] check-in: [32e13879] user: drh branch: trunk, size: 259254
15:06
Make the geteuid() system call overloadable using xSetSystemCall() on the unix VFSes. file: [c5e7976c] check-in: [6c2ddea6] user: drh branch: trunk, size: 259250
2015-11-21
17:27
Fix over-length source code lines. No logic changes. file: [bddde71d] check-in: [198d191b] user: drh branch: trunk, size: 259106
2015-11-19
19:48
Merge the latest enhancements from trunk. file: [f3e7ee04] check-in: [2c9e5436] user: drh branch: apple-osx, size: 297635
2015-11-17
20:56
When using mmap mode on unix, use a read-only mapping by default. Write to the database file using write(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy(). file: [eb24e034] check-in: [67c5d3c6] user: dan branch: trunk, size: 259108
2015-11-02
15:10
Merge latest trunk changes, including the follow-symlinks functionality and 3.9.2 bugfixes, into this branch. file: [93f3106e] check-in: [447521d7] user: dan branch: apple-osx, size: 297565
2015-10-31
17:58
On unix, if a file is opened via a symlink, create, read and write journal and wal files based on the name of the actual db file, not the symlink. file: [cf72e06e] check-in: [c7c81050] user: dan branch: follow-symlinks, size: 259038
2015-09-24
14:43
Merge recent trunk enhancements into the apple-osx branch. file: [5d735a65] check-in: [4dd06d8b] user: drh branch: apple-osx, size: 295825
12:40
Strengthen the implementations of xShmMemoryBarrier on both the unix and windows VFSes, so that they likely work even if SQLITE_THREADSAFE=0 is used. file: [fc93d55f] check-in: [c6ab807b] user: drh branch: trunk, size: 257298
2015-09-03
14:31
Merge enhancements from trunk. file: [61841d3b] check-in: [d01658ad] user: drh branch: apple-osx, size: 295706
2015-09-01
23:51
Very minor optimizations in the unix VFS. file: [76f493ed] check-in: [6db3ff45] user: drh branch: trunk, size: 257179
2015-08-28
15:35
Fix a potential segfault in the VFS logic that checks for fail renames out from under SQLite. file: [ea4f5f48] check-in: [650111f6] user: drh branch: apple-osx, size: 295715
02:12
Merge trunk enhancements into the apple-osx branch. Most tests works, but there are yet a few issues to be resolved. file: [70dc7e3a] check-in: [da864658] user: drh branch: apple-osx, size: 295764
2015-08-11
18:18
Fix the retry mechanism on file locks. file: [bc57de77] check-in: [600df309] user: drh branch: apple-osx, size: 295728
2015-07-03
21:38
Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate. file: [388c0235] check-in: [b202e2a1] user: mistachkin branch: trunk, size: 257188
2015-04-30
12:31
Fix signed/unsigned comparison compiler warnings. Add the SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded identically on every run, for testing purposes. file: [23eb5f56] check-in: [93ce2bca] user: drh branch: trunk, size: 257194
2015-04-29
16:50
Use sqlite3_malloc64() in place of sqlite3_malloc() internally. file: [661b48c5] check-in: [48f553b0] user: drh branch: trunk, size: 257158
2015-04-16
03:24
Merge updates from trunk. Make OSTRACE changes work on Linux. file: [cf45d7b1] check-in: [cd154266] user: mistachkin branch: winTest, size: 257130
2015-04-13
23:11
Merge all recent trunk enhances into the apple-osx branch. file: [acd575b6] check-in: [e709d3b4] user: drh branch: apple-osx, size: 295720
23:05
Add #ifdef magic for HAVE_GETHOSTUUID so that the build will hopefully now work on more verions of MacOS with SQLITE_ENABLE_LOCKING_STYLE turned on. file: [5ed7e2e4] check-in: [211411d0] user: drh branch: trunk, size: 257152
2015-04-08
12:47
Merge in all version 3.8.9 changes from trunk. file: [bd7b5374] check-in: [30121870] user: drh branch: apple-osx, size: 295424
2015-04-03
20:33
Disable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work and is not yet ready for release. file: [25b80a3d] check-in: [4ae9a3ac] user: drh branch: trunk, size: 256856
2015-03-24
18:49
Merge the latest trunk enhancements into the apple-osx branch. file: [895648d4] check-in: [a2bd81e5] user: drh branch: apple-osx, size: 295398
2015-03-21
20:59
Do not invoke a C preprocessor macro with an empty argument, as (reportedly) some versions of GCC are unable to deal with that. file: [a4dadbc2] check-in: [de9da317] user: drh branch: trunk, size: 256830
17:00
Merge all recent trunk enhancements and especially the blocking WAL-lock fix into the apple-osx branch. file: [181f7369] check-in: [9f1f8b33] user: drh branch: apple-osx, size: 295380
16:36
Fix the blocking WAL lock so that it works and so that it compiles on a Mac. file: [e68c8e77] check-in: [67d69d21] user: drh branch: trunk, size: 256812
2015-03-17
18:35
Merge all recent trunk changes, and in particular the blocking WAL lock change, into the apple-osx branch. file: [78819ac3] check-in: [8abbeadb] user: drh branch: apple-osx, size: 295377
2015-03-10
20:22
Arrange for some of the transient locks in WAL mode to block, as a single to the OS to fix priority inversions. file: [cc903ecc] check-in: [c6e6d5f4] user: drh branch: wal-blocking-lock, size: 256809
2015-03-09
13:18
Merge recent trunk enhancements into the apple-osx branch. file: [e34ae6ec] check-in: [5e04eec8] user: drh branch: apple-osx, size: 294985
2015-03-03
20:42
Clean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks, automatically use posix advisory locking if it is available or fall back to named semaphore locking if not. file: [49d06ace] check-in: [ac8c7ca3] user: drh branch: trunk, size: 256417
19:56
Fix compiler warnings when compiling under VxWorks 7. file: [35510fa3] check-in: [55c21521] user: drh branch: trunk, size: 256532
2015-03-02
22:06
Changes so that the amalgamation and the command-line shell build without modifications on VxWorks 7. Still gives a few compiler warnings, and still mostly untested on that platform. file: [190c726a] check-in: [7d92f1f1] user: drh branch: trunk, size: 256345
2015-02-21
01:03
Merge trunk changes into the apple-osx branch. file: [2a05bfbc] check-in: [3896e233] user: drh branch: apple-osx, size: 295115
00:56
Fix a compiler warning associated with USE_PREAD64. file: [c06b1b26] check-in: [c299e55a] user: drh branch: trunk, size: 256547
00:49
Fix over-length source code lines in os_unix.c. file: [77e169d8] check-in: [7560a9fa] user: drh branch: trunk, size: 256537
2015-02-19
16:12
Remove a redundant call to statfs() in the xOpen() method of the unix VFS. Also fix an unused local variable warning. file: [16ad795e] check-in: [8215727d] user: drh branch: trunk, size: 256559
15:56
Incremental merge to prevent a huge pileup of merge conflicts resulting from editing the same code in two different branches. file: [e9666eb4] check-in: [82c4c4e2] user: drh branch: apple-osx, size: 295122
02:43
Move the os_unix.c file closer to trunk. file: [56b08303] check-in: [57d70240] user: drh branch: apple-osx, size: 295126
02:43
Move the os_unix.c file closer to apple-osx. file: [9922c8f5] check-in: [81f242e3] user: drh branch: trunk, size: 257232
2015-01-16
12:24
Merge the 3.8.8 release changes from trunk. file: [06e10d7a] check-in: [518621f8] user: drh branch: apple-osx, size: 294876
2015-01-10
18:02
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true. file: [aefeaf91] check-in: [694228e4] user: drh branch: trunk, size: 256342
2015-01-08
19:55
Merge the testing enhancements and the unlimited VALUES enhancement from trunk. file: [56858043] check-in: [cc780842] user: drh branch: apple-osx, size: 294837
2015-01-06
21:31
Fix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that do not support posix_fallocate(). file: [949cdedc] check-in: [af20eae1] user: dan branch: trunk, size: 256303
2015-01-02
19:17
Merge the latest changes from trunk into the apple-osx branch. file: [68823f4a] check-in: [df3cdf9f] user: drh branch: apple-osx, size: 294748
2014-12-30
19:58
Ensure that when a file is extended using FCNTL_SIZE_HINT the last page is allocated on disk, even if the file will only use part of it. file: [08c0346d] check-in: [c7f84717] user: dan branch: trunk, size: 256216
14:40
If the sorter uses mmap'd temp files, ensure all pages of the temp file have been allocated before it is accessed. Otherwise, a disk-full condition might result in a SIGBUS exception. file: [7f9ed5f0] check-in: [77664841] user: dan branch: trunk, size: 256065
2014-10-09
11:40
Record the errno on fstat() failures. file: [2af3813f] check-in: [2a6a0820] user: drh branch: apple-osx, size: 294429
2014-10-01
01:46
Merge the latest enhancements from trunk. file: [318d879a] check-in: [2078454a] user: drh branch: apple-osx, size: 294344
2014-09-22
03:22
Disable shared memory operations using the unix-nolock VFS. file: [fb587121] check-in: [10a6e510] user: drh branch: trunk, size: 256065
2014-09-21
23:08
Merge in all recent changes from trunk. file: [eb7b17fa] check-in: [3967ebe8] user: drh branch: apple-osx, size: 293948
2014-09-19
19:00
Make the "nolock" VFS on unix a version-3 VFS so that the sorter can use memory-mapped I/O. file: [9096a1b1] check-in: [3db78d61] user: drh branch: trunk, size: 255669
2014-09-06
17:06
Fixes to os_unix.c to support database (and other) files larger than 2GiB on Android. file: [addd023b] check-in: [ad7063aa] user: dan branch: trunk, size: 255669
16:52
Merge latest trunk changes with this branch. file: [074879d7] check-in: [9dca7ce5] user: dan branch: android-large-filles, size: 255670
16:49
Fixes to os_unix.c to support database (and other) files larger than 2GiB. file: [22225d79] check-in: [e7fae33c] user: dan branch: android-large-filles, size: 255677
16:39
Fix typos in comments. No code changes. file: [576f95b5] check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 254968
2014-09-02
15:57
Merge the latest trunk changes into the apple-osx branch. file: [187835e0] check-in: [696dc935] user: drh branch: apple-osx, size: 293254
2014-09-01
13:37
Attempt to make the xDelete method of the unix VFS more robust on VxWorks. file: [8525ca79] check-in: [b0f6b91f] user: drh branch: trunk, size: 254975
2014-08-14
13:39
Merge the pre-3.8.6 changes from trunk into the apple-osx branch. file: [cd502696] check-in: [08058df3] user: drh branch: apple-osx, size: 293249
2014-08-13
11:39
Minor change to unixDelete for VxWorks with a DOS filesystem. file: [bd7df309] check-in: [f01d42cc] user: drh branch: trunk, size: 254970
2014-08-12
12:19
Fix typos in the VxWorks code of os_unix.c. file: [119f4f1f] check-in: [19682e8f] user: drh branch: trunk, size: 254917
2014-08-11
13:53
Changes that will perhaps enable SQLite to work better on VxWorks. file: [17e7ab0f] check-in: [de27c742] user: drh branch: trunk, size: 254900
2014-08-08
15:38
The SQLITE_IOERR_BLOCKED extended error code is not longer used, so remove assert() statements and documentation for that error code. Also make other documentation improvements. file: [f0a58d43] check-in: [36b7c5ce] user: drh branch: trunk, size: 254771
2014-06-30
19:57
Merge the latest trunk changes into the apple-osx branch. file: [bc2bed8c] check-in: [f426876f] user: drh branch: apple-osx, size: 293477
2014-06-23
10:04
Fix a problem with SQLITE_OMIT_WAL builds. file: [a7baf1b3] check-in: [612b6d1b] user: dan branch: trunk, size: 255198
2014-06-16
18:35
Add the SQLITE_UNLINK_AFTER_CLOSE compile-time option. If enabled, the unlink of temporary files on unix is deferred until after the file is closed. file: [9a97268f] check-in: [e43a2f92] user: drh branch: trunk, size: 255076
2014-06-09
20:39
Avoid an unnecessary initialization of the szFile field of unixFile in the unix VFS. file: [89be80af] check-in: [6484fb5a] user: drh branch: trunk, size: 255878
20:06
Enhance the unix VFS so that it keeps track of the size of unlinked files internally and thus avoids the need to call fstat() on those files, since fstat() does not work reliably on unlinked files on some implementations of FuseFS. file: [e8c5f23b] check-in: [c41df393] user: drh branch: omit-fstat-after-unlink, size: 255869
2014-05-09
14:56
Fix a misplaced #endif and a C99-ism in the unix VFS. file: [6a54dad9] check-in: [c8d384d1] user: drh branch: apple-osx, size: 293002
2014-05-08
23:01
Initial attempt to merge in all trunk changes over the previous 1.5 years. This check-in compiles but there are compiler warnings and "make test" segfaults after only running a few test modules. file: [a0ebd5f0] check-in: [9411d7dc] user: drh branch: apple-osx, size: 293002
2014-03-20
09:42
Add a test to ensure os_unix.c works with 64KiB OS pages. file: [ae4b5240] check-in: [e3d2be3b] user: dan branch: shm-mapping-fix, size: 254723
08:59
Add an experimental fix to avoid attempting to mmap memory from an offset that is not a multiple of the system page size on systems with page sizes larger than 32KB. file: [7e2f6348] check-in: [6f3a5c24] user: dan branch: shm-mapping-fix, size: 254431
2014-02-12
15:05
Various fixes and test case updates so that veryquick.test passes again. file: [c53e2683] check-in: [f352ef57] user: dan branch: deferred-open, size: 257790
2014-02-11
19:35
Test case updates to account for the fact that database files are not created until they are first written. file: [d75a3d63] check-in: [8ef97420] user: dan branch: deferred-open, size: 256990
2014-02-10
21:09
Fix a bug causing the POWERSAFE_OVERWRITE device-characteristic flag to be set incorrectly if file opening is deferred. file: [a45a0d2f] check-in: [95d0c58d] user: dan branch: deferred-open, size: 256831
19:37
Experimental change to os_unix.c to delay creating a database file until it is first written. file: [dcb7dd4f] check-in: [538f7b25] user: dan branch: deferred-open, size: 256240
2014-02-07
19:33
Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE. file: [18f7f95d] check-in: [4043d879] user: drh branch: trunk, size: 253406
2014-01-24
22:58
Fixes for various clang warnings. file: [f3ed0e40] check-in: [87bf6063] user: drh branch: trunk, size: 254528
2014-01-15
00:24
Merge recent fixes from trunk. Cherrypick of [c43b59dac1], [a221aa82bb], [e1eba1fb09], and [1e131094b5]. file: [35b55bff] check-in: [c697d2f8] user: mistachkin branch: branch-3.8.2, size: 254177
2014-01-10
16:40
Fix another harmless compiler warning in unixUnfetch(). file: [3a4dcb55] check-in: [0484549b] user: dan branch: trunk, size: 254532
2014-01-09
13:39
Fix harmless compiler warning in unixUnfetch(). file: [9270957b] check-in: [618f248f] user: drh branch: trunk, size: 254506
2014-01-01
15:18
Try to detect process ID changes due to fork() calls in os_unix.c and reset the PRNG when a process ID change is detected. file: [abeb9d54] check-in: [e1eba1fb] user: drh branch: trunk, size: 254453
2013-12-07
12:29
Actually look at i-node numbers to determine whether or not the database file has moved. file: [60a7b3b2] check-in: [2b1884dc] user: drh branch: detect-moved-db, size: 253831
2013-12-05
16:41
Fix two potential (and apparently harmless) shift overflows discovered by the -fcatch-undefined-behavior option of clang. file: [f0765870] check-in: [e19eead8] user: drh branch: trunk, size: 253555
2013-10-31
18:49
Fix a problem in os_unix.c causing compilation failure if SQLITE_DEBUG and SQLITE_MAX_MMAP_SIZE=0 are both defined. file: [143624d9] check-in: [090db8c8] user: dan branch: trunk, size: 253532
2013-08-30
21:52
Add support for Cygwin when handling temporary file names. Improve error codes and diagnostic messages for temporary file name handling on Windows. Rename winConvertUtf8Filename to winConvertFromUtf8Filename. Improve placement and comments for forward function declarations. file: [243fb37f] check-in: [a411df72] user: mistachkin branch: cygwinTempPath, size: 253498
14:24
Add the SQLITE_MINIMUM_FILE_DESCRIPTOR compile-time option, for control over exactly which low-numbered file descriptors SQLite will use. file: [7d5f3c51] check-in: [ba519053] user: drh branch: trunk, size: 253434
06:20
Improvements to the robust_open() logic in the unix VFS so that if an attempt is made to open a repository on file descriptors 0, 1, or 2, and blocking that file descriptor by opening it on /dev/null fails, then the open will fail. file: [81271e38] check-in: [d9c018f8] user: drh branch: trunk, size: 253118
2013-08-29
23:34
Change the unix VFS so that it refuses to open a database file using a file descriptor less than 3. file: [45d42555] check-in: [66dddda0] user: drh branch: overwrite-avoidance, size: 253908
21:26
Never leave an open file descriptor pointing into the middle of the database file if the file descriptor number is 2 or less. file: [94c7edbd] check-in: [3426673e] user: drh branch: overwrite-avoidance, size: 252953
2013-08-26
19:36
Merge updates from trunk. file: [c27a14a0] check-in: [9d686009] user: mistachkin branch: mmapDisabled, size: 252831
14:30
Fix for builds with both SQLITE_OMIT_WAL and SQLITE_MAX_MMAP_SIZE=0 defined. file: [6005be1c] check-in: [edd5dbdc] user: dan branch: trunk, size: 252661
2013-08-24
01:12
Fix a couple compilation issues on Unix. file: [44a2b26a] check-in: [25b029d8] user: mistachkin branch: mmapDisabled, size: 252768
00:59
Unify the result of PRAGMA mmap_size when mmap support is disabled. file: [e767bca6] check-in: [032c3159] user: mistachkin branch: mmapDisabled, size: 252700
2013-06-20
14:07
Disable posix_fallocate() for all systems, all the time, unless the HAVE_POSIX_FALLOCATE compile-time macro is supplied. file: [9eafa545] check-in: [b6744622] user: drh branch: trunk, size: 252598
2013-06-19
14:49
Only default HAVE_POSIX_FALLOCATE on for linux, and then only if it is not previously defined. file: [a4c49f85] check-in: [2b2ade92] user: drh branch: trunk, size: 252742
14:28
Only enable posix_fallocate by default on linux and mac. file: [4b198446] check-in: [b9b30d4f] user: drh branch: trunk, size: 252730
2013-05-23
01:40
Cause the mmap_size PRAGMA to immediately change the mmap space if the database connection is already active. In particular, reducing mmap_size will immediately free up process address space. file: [42c9b8b7] check-in: [76117792] user: drh branch: trunk, size: 252784
2013-05-17
12:10
In os_unix.c and os_win.c, initialize the default mmap-limit of a new file descriptor to the current global default mmap-limit, not the current global maximum allowable mmap-limit. file: [75ce4930] check-in: [1def4ea3] user: dan branch: trunk, size: 252663
2013-05-09
18:12
Add assert()s to the implementation of xRead() in the built-in VFSes to verify that the offset parameter is always non-negative. file: [5e0b0ca7] check-in: [cf5c3642] user: drh branch: trunk, size: 252663
2013-05-02
17:37
Minor fixes for compilation with SQLITE_OMIT_WAL defined. file: [658b180a] check-in: [b81e87e7] user: dan branch: trunk, size: 252621
2013-04-27
12:13
Untested fix for building on VxWorks. file: [5a214c54] check-in: [f14d55cf] user: drh branch: trunk, size: 252589
2013-04-26
16:09
Avoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems. file: [f86cd628] check-in: [9c7523da] user: dan branch: avoid-fallocate, size: 252620
2013-04-22
23:38
Fix harmless compiler warnings. file: [5a9ac4a5] check-in: [1a1cf5aa] user: drh branch: trunk, size: 251607
2013-04-15
17:03
Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. file: [0a561eae] check-in: [ea1404a1] user: drh branch: trunk, size: 251581
2013-04-11
01:16
Have the UNIX VFS issue warnings via sqlite3_log() if a database file is renamed or unlinked or linked to more than one name while the file is open. file: [5707fcb1] check-in: [e238dcf9] user: drh branch: trunk, size: 251468
2013-04-09
19:19
Check in the instrumented code for the mptest test case that appears to show a spontaneously disappearing journal file. file: [d732dca0] check-in: [96f04d99] user: dan branch: missing-journal-file, size: 249768
16:19
Add extra #ifndef statements in os_unix.c and os_win.c to make sure the memory mapped I/O really is disabled when SQLITE_DISABLE_MMAP is set. file: [a6e9caad] check-in: [c1e2523c] user: drh branch: trunk, size: 249884
2013-04-08
15:30
Handle the case in os_unix.c where SQLITE_FCNTL_MMAP_LIMIT requests that the mmap limit be set to a value smaller than the current mapping. file: [6d584190] check-in: [36047349] user: dan branch: trunk, size: 249662
2013-04-03
13:09
Change the mmap_limit pragma to report the new limit, or to report the existing limit if called with no arguments. Report the default mmap_limit as part of PRAGMA compile_options. Set the default mmmap_limit to 0 for all systems other than linux, mac, windows, and solaris. file: [f0ecce40] check-in: [2d9f1327] user: drh branch: experimental-mmap, size: 249578
10:50
Initialize the mmap_limit of temporary files to the configured mmap_limit. file: [626ddccf] check-in: [24bab759] user: drh branch: experimental-mmap, size: 249491
00:42
Fix the unix driver to check defined(_BSD_SOURCE) rather than just the plain _BSD_SOURCE macro. This fixes the build for OpenBSD. file: [f7d8c6ef] check-in: [1dd42ef4] user: drh branch: experimental-mmap, size: 249490
2013-04-02
20:55
Fix a resource leak in os_unix.c. file: [e8e76c95] check-in: [b29cda03] user: dan branch: experimental-mmap, size: 249481
12:04
Add test cases for errors in mmap() or mremap() is os_unix.c. file: [42684a59] check-in: [3098a3c1] user: dan branch: experimental-mmap, size: 249586
2013-04-01
22:38
Add the SQLITE_CONFIG_MMAP_LIMIT configuration option for overriding the SQLITE_DEFAULT_MMAP_LIMIT compile-time setting. Enhance "PRAGMA mmap_limit" so that without a specific database name, it sets the limit on all database files and changes the default for any future databases that might be added using ATTACH. file: [9912ab0c] check-in: [78141d0a] user: drh branch: experimental-mmap, size: 249622
17:56
Attempt to emulate mremap() on non-Linux systems by allocating a second mapping immediately following the first in virtual memory. file: [d136eca0] check-in: [4d67433d] user: dan branch: experimental-mmap, size: 249554
14:20
Minor changes to unixMapfile() function. file: [2c54787f] check-in: [80c63443] user: dan branch: two-mappings, size: 250240
2013-03-29
18:52
Fix a problem in btree.c that could cause a crash following an OOM. Also various test script problems. file: [0bebbe67] check-in: [e8bcdf93] user: dan branch: two-mappings, size: 250170
11:24
Avoid assuming the page-size is 4096 bytes in os_unix.c. file: [68b5606c] check-in: [3b7ec8d7] user: dan branch: two-mappings, size: 250174
2013-03-27
19:53
Modify various test cases so that they work if the file is extended in units of the system page-size. file: [3894d062] check-in: [0e3d5119] user: dan branch: two-mappings, size: 250068
2013-03-26
20:32
Change os_unix.c to use either one or two mappings internally. file: [d37ec5f1] check-in: [e7698cba] user: dan branch: two-mappings, size: 250030
18:48
Fix a comment in os_unix.c. No code changes. file: [d6981218] check-in: [72813b8e] user: drh branch: experimental-mmap, size: 246968
2013-03-25
23:09
Memory-mapped I/O is now on by default. The "PRAGMA mmap_limit(N)" can be used to issue a hint to the VFS to limit mmap space to N bytes. The VFS is free to ignore that hint if desired. However, if "PRAGMA mmap_limit(0)" is used, xFetch is never called. file: [57306f1d] check-in: [1b37c4ef] user: drh branch: experimental-mmap, size: 246967
20:50
Add munmap and mremap to the set of os interfaces that can be overloaded in os_unix.c. file: [6b3f972a] check-in: [8776047b] user: drh branch: experimental-mmap, size: 246897
20:30
Use mremap() on Linux. file: [a4d7076a] check-in: [431aecc8] user: dan branch: experimental-mmap, size: 246493
19:57
Merge all recent trunk changes into the experimental-mmap branch. file: [54b82f34] check-in: [a607d63f] user: drh branch: experimental-mmap, size: 246299
19:05
Add a test that simulates an error in mmap(). file: [6815e3dd] check-in: [6ec7367d] user: dan branch: experimental-mmap, size: 246297
17:00
Change the signature of the xUnfetch method to "int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p)". file: [664fc178] check-in: [115b8305] user: dan branch: experimental-mmap, size: 246159
16:28
Remove unnecessary code to round the size of a memory mapping to 4KB from os_unix.c. Rename SQLITE_IOERR_MREMAP to SQLITE_IOERR_MMAP. Fix other small issues in os_unix.c. file: [82efc58c] check-in: [dce35c01] user: dan branch: experimental-mmap, size: 245898
13:50
Fix a case in the pager where an xFetch() reference was being leaked following an OOM error. file: [1e61abcb] check-in: [5885ba6c] user: dan branch: experimental-mmap, size: 244240
2013-03-23
21:00
Replace the sqlite3_io_methods.xMremap interface with sqlite3_io_methods.xFetch and xUnfetch. file: [d8cdf331] check-in: [1431be95] user: dan branch: experimental-mmap, size: 244186
2013-03-22
17:46
Add a fix for the assert() statements added by the previous commit. file: [55d11087] check-in: [19345416] user: dan branch: experimental-mmap, size: 244040
08:58
Add assert statements to os_unix.c to ensure that any mapped region of the database file is not being read or written using the xRead() or xWrite() methods. file: [18153e6f] check-in: [765615f9] user: dan branch: experimental-mmap, size: 243726
2013-03-21
21:20
Many spelling fixes in comments. No changes to code. file: [21a36fa0] check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 239708
14:47
Do not use the Linux mremap() call. Use the same strategy for xMremap() as on OSX instead. file: [be66c313] check-in: [5ed8ad78] user: dan branch: experimental-mmap, size: 243115
2013-03-20
18:25
Optimize the xMremap method in os_unix.c some. file: [c96bdc9e] check-in: [9529ed88] user: dan branch: experimental-mmap, size: 243670
14:26
When possible, use memory mapping when appending new pages to a database file. file: [aedd47c2] check-in: [14135da3] user: dan branch: experimental-mmap, size: 241867
2013-03-19
19:28
Add the sqlite3_io_methods.xMremap() method to the VFS interface. Also "PRAGMA mmap_size". file: [0c7b0d07] check-in: [6183f1bd] user: dan branch: experimental-mmap, size: 240890
2013-03-14
18:34
Use mmap() to read from the database file in rollback mode. This branch is unix only for now. file: [2a4cd96a] check-in: [6f21d9cb] user: dan branch: experimental-mmap, size: 239797
2013-03-06
01:41
Fix an operator precedence problem on the [1d8086902e] check-in. file: [f6387eef] check-in: [4f5f3aeb] user: drh branch: ex-robust-open, size: 239706
2013-03-05
15:27
Do not attempt to set the permissions on an existing journal or wal file. Do this only immediately after creating a new file (or opening one zero bytes in size). file: [d8ab3f4b] check-in: [1d808690] user: dan branch: experimental, size: 239704
2013-03-01
01:07
Always use strncmp() rather than memcmp() when comparing strings where one or other string might be less than the length parameter, since optimized versions of memcmp() might read past the first difference and in so doing generate an access violation. file: [8964f621] check-in: [d7343558] user: drh branch: trunk, size: 239662
2013-01-04
20:45
Do not use umask() since it change the umask for the entire process, not just the thread using SQLite. Make whatever permission changes are needed using fchmod() after the file is created, instead. file: [dfdc04b1] check-in: [6c4c2b7d] user: drh branch: trunk, size: 239665
2012-12-06
19:01
Add the SQLITE_FCNTL_TEMPFILENAME file control that asks the underlying VFS to return a new temporary filename. Per request from NSS team at Mozilla. file: [ad459bb6] check-in: [1a63b1d5] user: drh branch: trunk, size: 239856
2012-11-13
11:08
Use preprocessor macros to automatically detect whether or not posix_allocate() is available. (It is generally available on Linux but not on Mac.) Ticket [5eaa61ea1881040b17449ca043b6f8fd9ca55dc3] file: [b75d9b08] check-in: [597333f1] user: drh branch: tkt-5eaa61ea18, size: 239529
10:54
When available, use posix_fallocate() rather than ftruncate() to allocate space for mmap()ed -shm files, since posix_fallocate() gives an error if no disk space is available whereas ftruncate() is silent and leaves the system vulnerable to a SIGBUS upon first write to the mmap()ed region. Ticket [5eaa61ea1881040b17449ca043b6f8fd9ca55dc3] file: [fad4c9cb] check-in: [35625961] user: drh branch: tkt-5eaa61ea18, size: 239343
2012-11-09
21:40
Only log unlink() errors if the error is something other than SQLITE_IOERR_DELETE_NOENT. The error is still reported up the stack, it is simply not added to the sqlite3_log(). file: [f0753566] check-in: [5a3b07f0] user: drh branch: trunk, size: 239056
20:17
Change os_unix.c to propagate ENOENT errors back to sqlite as SQLITE_IOERR_DELETE_NOENT. Have SQLite ignore these where they are benign and propagate them back to the caller where they may indicate a file-system malfunction of some description. file: [1f7c7f2a] check-in: [bed9c172] user: dan branch: trunk, size: 239056
2012-10-26
13:46
Add QNX-specific performance tweaks to the unix VFS. (Cherry-pick merge of [b02849e7bde458].) file: [603d020f] check-in: [63a7dd75] user: drh branch: trunk, size: 238978
13:25
Add QNX-specific performance tweaks to the unix VFS. (Cherry-pick merge of [b02849e7bde458].) Put auxiliary libraries after libsqlite3.a in the testfixture target of the "main.mk" makefile. (Cherry-pick merge of [8fc8548f52ab8fcfb5].) file: [2383c592] check-in: [cbfd1b12] user: drh branch: branch-3.7.14, size: 238824
2012-10-09
18:51
Attempt to suppress warnings generated by Coverity. file: [0d3a39dd] check-in: [7b1a6e6c] user: drh branch: trunk, size: 235197
2012-10-05
19:10
Add QNX-specific performance tweaks to the unix VFS. file: [97c346f8] check-in: [b02849e7] user: drh branch: branch-3.7.9, size: 234300
2012-10-01
12:16
Make sure the size parameter to read and write VFS methods in the unix VFS do not become too big or go negative. This was not actually possible in the current code. The checks are added to make sure some future bug does not make it possible. file: [a5a45a28] check-in: [daebe3bd] user: drh branch: trunk, size: 235143
2012-08-31
14:10
Merge in latest trunk changes. file: [0482b132] check-in: [bc9b9cd0] user: dan branch: apple-osx, size: 273549
2012-08-25
10:01
Fix all known instances of 'repeated the' style typos in comments. No changes to code. file: [69b2fe66] check-in: [9b19b847] user: mistachkin branch: trunk, size: 235043
01:38
Merge all the latest trunk changes into the apple-osx branch. file: [7f781672] check-in: [6723add4] user: drh branch: apple-osx, size: 273558
2012-08-20
15:53
Remove tab characters from source code files. Replace them with spaces. file: [b5149a33] check-in: [7edd10a9] user: drh branch: trunk, size: 235052
2012-06-08
01:13
Merge trunk changes into the apple-osx branch. file: [767d9ae4] check-in: [9d1b8515] user: drh branch: apple-osx, size: 273527
2012-05-31
13:10
Avoid calling fchown() if the process is not running as root. file: [d7c96b5d] check-in: [70c419a4] user: drh branch: trunk, size: 235023
00:21
Only call fchown when running as root and supporting files mismatch the database owner & perms file: [1f91f730] check-in: [ed53b645] user: adam branch: apple-osx, size: 273181
2012-05-29
17:02
Changes some NDEBUG macros to SQLITE_DEBUG in os_unix.c. The is a notational change only and really should not effect the code. file: [8a90a7cd] check-in: [8e302570] user: drh branch: trunk, size: 235310
2012-05-17
14:17
Stylistic fixes: limit source code line length to 80 characters. C89-style comments only, not C++/C99 style. file: [d0eeadc4] check-in: [4068abe0] user: drh branch: apple-osx, size: 273988
2012-05-16
22:08
Improve error reporting from sqlite3_file_control, SQLITE_FCNTL_REPLACE_DATABASE shouldn't copy file security/ACL metadata, bad bit mask fixed file: [a87e927c] check-in: [92e7bb90] user: adam branch: apple-osx, size: 273585
2012-05-09
22:36
Added support for SQLITE_ENABLE_PERSIST_WAL compile time macro, retrieving lastErrno from WAL file and setting last errno when writes fail due to space constraints file: [f8c943a0] check-in: [65479294] user: adam branch: apple-osx, size: 272062
2012-04-19
20:43
Update the apple-osx branch so that it includes all of the latest trunk changes. file: [d1978ba8] check-in: [b72f07b4] user: drh branch: apple-osx, size: 269052
2012-04-14
13:25
In the unix VFS, always set every open file to close-on-exec using either O_CLOEXEC at open (preferred) or FD_CLOEXEC in an ioctl after opening. Before this changes, many files were done this way, but not all. file: [424d46e0] check-in: [9efbeb11] user: drh branch: trunk, size: 235275
2012-04-05
20:04
Ignore the value of SQLITE_FCNTL_CHUNK_SIZE if it is negative. file: [75eff7b4] check-in: [1b08fef9] user: drh branch: trunk, size: 235233
2012-04-02
23:35
Merge in latest changes, autologging options, read only file system wal support, test config conditionalization, WAL frame write prebuffering file: [5e6ead4f] check-in: [d51c086e] user: adam branch: apple-osx, size: 269008
2012-03-05
16:39
Pull in all the latest trunk changes. file: [c008584c] check-in: [504bf490] user: drh branch: apple-osx, size: 265322
2012-02-22
19:03
Disable the "filename" pragma implemented by os_unix.c except when compiled with SQLITE_TEST. file: [49e10d7d] check-in: [9a1da918] user: drh branch: file-control-pragma, size: 235487
16:58
Change the SQLITE_FCNTL_PRAGMA file-control so that it can return a string value. file: [497e355a] check-in: [fd8d7440] user: drh branch: file-control-pragma, size: 235461
2012-02-13
20:28
Fix a harmless compiler warning introduced by the previous check-in. file: [0e3d2942] check-in: [a8a042a7] user: drh branch: trunk, size: 235231
20:16
On unix, ignore the umask when creating journal files. That way, journal files will have exactly the same permissions as the original database and any process that has permission to write to the database can also recover hot journals. file: [8035d8af] check-in: [84b32460] user: drh branch: trunk, size: 235227
08:50
Fix a typo in the type of the fchown() function in os_unix.c. file: [fd5875e6] check-in: [bfbfe05b] user: dan branch: trunk, size: 234551
2012-02-11
23:55
Make fchown() an overrideable system call in os_unix.c. file: [55fbf23b] check-in: [98efac96] user: drh branch: trunk, size: 234559
21:21
Silence GCC compiler warnings about unused return value from fchown(). file: [3dd0399f] check-in: [b0225473] user: drh branch: trunk, size: 234414
19:23
When creating journal files (including -wal and -shm files) try to set the ownership to be the same as the original database. This will prevent root from locking out the original owner of the file. file: [f7e7b3e4] check-in: [1254dffe] user: drh branch: trunk, size: 234087
18:51
Remove a redundant test from the shared-memory logic in os_unix.c. file: [35fb4bc9] check-in: [31142ca7] user: drh branch: trunk, size: 232919
2012-02-10
18:18
Pull the latest trunk changes into the apple-osx branch. file: [34a2b44b] check-in: [e2485986] user: drh branch: apple-osx, size: 263244
03:10
Fix an important bug in the handling of EINTR in unixRead(). Never came up on x86 but crashes on sparc. file: [d509b369] check-in: [1a16db0b] user: drh branch: trunk, size: 232962
2012-01-14
14:13
Merge the latest trunk changes into the apple-osx branch. file: [43d5790e] check-in: [2cc414cd] user: drh branch: apple-osx, size: 263241
2012-01-10
23:18
Only require double-zero terminators on database filenames, not any every files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. file: [657672fa] check-in: [cb774b26] user: drh branch: trunk, size: 232959
2012-01-05
21:19
Make sure the name of the shared memory file has two zero-terminators in the UNIX VFS, so that sqlite3_uri_parameter() will work correctly on that name. file: [2ad4366b] check-in: [3d088ba5] user: drh branch: trunk, size: 232415
16:07
Change the unix VFS so that it ignores all but the least-significant bit of the syncDir flag to xDelete. Add an assert to prove that the core only ever uses that one bit. file: [b65e2d90] check-in: [e75fd3b2] user: drh branch: trunk, size: 232402
11:43
Remove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSes as they are no longer needed because of check-in [fd3822f1f2]. file: [f19ca2ef] check-in: [7cf568a1] user: drh branch: trunk, size: 232393
2012-01-03
21:54
Pull all the latest trunk changes over into the apple-osx branch. file: [fc315957] check-in: [8a048423] user: drh branch: apple-osx, size: 262770
14:50
Make sure filenames passed into sqlite3OsOpen() always have the extra zero-terminators needed by sqlite3_uri_parameter(). file: [aff2f5e6] check-in: [d73e93cf] user: drh branch: trunk, size: 232476
2012-01-02
18:20
Remove the code that attempts to find the sector size from the OS and hardcode the xSectorSize methods of the unix and windows VFSes to return SQLITE_DEFAULT_SECTOR_SIZE, which is now set to 4096 unless overridden. file: [51acd547] check-in: [03d8362c] user: drh branch: trunk, size: 232476
2011-12-23
01:04
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. The query parameter used to control this device characteristic is now "psow". file: [3a441671] check-in: [6191c5e4] user: drh branch: statvfs, size: 233272
00:25
Merge the latest trunk changes into the statvfs branch. file: [ac21edf9] check-in: [d5e36327] user: drh branch: statvfs, size: 233112
00:07
Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which are wrappers around sqlite3_uri_parameter() combined with internal routines for converting strings to booleans and 64-bit integers. file: [ee4ea557] check-in: [83d26b9a] user: drh branch: trunk, size: 231188
2011-12-21
14:42
Add the ability to enable or disable SQLITE_IOCAP_ZERO_DAMAGE using a URI parameter for both unix and windows. Add a file-control to query or disable the ZERO_DAMAGE setting. Add the -uri option to the "sqlite3" TCL command in tclsqlite3.c. Allow the sqlite3_uri_parameter() interface to accept a NULL pointer for its first parameter. file: [3e630701] check-in: [c83627b7] user: drh branch: statvfs, size: 233281
2011-12-17
19:49
Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). file: [e2b96f85] check-in: [a0be6ea4] user: drh branch: statvfs, size: 232043
16:25
Fix a bad #endif with the previous check-in on this branch. file: [a1d12b74] check-in: [915713ff] user: drh branch: statvfs, size: 232020
16:09
Add support for statvfs() in os_unix.c, for determining the sector size. This causes many TCL test failures under Linux. file: [987407fd] check-in: [e0d44450] user: drh branch: statvfs, size: 232020
2011-12-14
18:33
Merge the nx-devkit changes into trunk. This includes the new SQLITE_FCNTL_VFSNAME file-control. file: [7dc7df10] check-in: [da118e02] user: drh branch: trunk, size: 231253
17:53
Add a file-control that will discover the name of the bottom-level VFS and all the shims in between. file: [baad28b2] check-in: [cdbfb553] user: drh branch: vfsname-filectrl, size: 231257
2011-12-12
20:01
Backport a minimal set of changes needed to get 8+3 filenames and the multiplexor shim playing well together. file: [02b3794c] check-in: [c4e2ce48] user: drh branch: nx-devkit, size: 231029
19:48
Fix os_unix.c so that, unless 8.3 filenames are actually in use, journal and wal file permissions are assigned correctly even if SQLITE_ENABLE_8_3_NAMES is defined. file: [dcb42d74] check-in: [169e1229] user: dan branch: trunk, size: 231025
2011-12-11
02:29
Fix harmless compiler warnings. file: [07dcae2d] check-in: [1e6a698a] user: drh branch: trunk, size: 231026
2011-12-08
21:08
Merge the latest trunk changes into the apple-osx branch. file: [fa4ef25e] check-in: [59e0d4f3] user: drh branch: apple-osx, size: 261324
2011-11-14
01:55
Begin making experimental changes to use mmap() for reading content from a database. The code compiles, but crashes on the test suite. file: [f2c4cfdc] check-in: [09be42d5] user: drh branch: mmap-experimental, size: 232809
2011-11-07
18:16
Make the unix VFS tolerant of read() calls that return less than the requested number of bytes. file: [4fbb9172] check-in: [a210695a] user: drh branch: trunk, size: 231030
2011-11-04
02:24
Use mkdir() and rmdir() rather than open() and unlink() to create the lock files with the unix-dotlock VFS. The change is backwards compatible and, we are told, works better on some network filesystems. file: [32f2ac2a] check-in: [e2f08426] user: drh branch: trunk, size: 230806
2011-11-01
15:45
If the read() system call in unix returns fewer bytes than expected, retry it until it either returns zero or an error. file: [82e71071] check-in: [72256634] user: drh branch: retry-short-reads, size: 230731
2011-10-31
19:34
Fix the os_unix.c source file so that it will build as part of an amalgamation on non-apple platforms. file: [c70a4487] check-in: [b2f7639c] user: drh branch: apple-osx, size: 260952
2011-10-21
17:18
Merge the latest trunk changes into the apple-osx branch. file: [68ca0b5e] check-in: [be62ef05] user: drh branch: apple-osx, size: 260905
2011-10-20
18:23
Fix an issue with finding the access permissions of journal files when 8+3 filenames are in use. file: [ddda0b1c] check-in: [2b35c514] user: drh branch: trunk, size: 230533
2011-10-15
00:16
Added the tool/warnings-clang.sh script. Changes so that there are no warnings with either gcc or clang even including FTS4 and RTREE and both with and without SQLITE_THREADSAFE=0. file: [1e7dcc17] check-in: [39408702] user: drh branch: trunk, size: 230548
2011-10-14
21:49
Add assert() statements and eliminate needless variable assignments in order to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. file: [951ac526] check-in: [60fee957] user: drh branch: trunk, size: 230518
2011-10-13
01:01
Fix a harmless compiler warning introduced into os_unix.c by one of the recent changes. file: [d42ad1c4] check-in: [4bf4d5eb] user: drh branch: trunk, size: 230740
2011-10-12
23:13
The date/time functions return NULL if the xCurrentTime or xCurrentTimeInt64 VFS methods fail. Ticket [0b803bff856c644c] file: [7f8031b5] check-in: [c96651dd] user: drh branch: trunk, size: 230736
2011-10-11
18:38
Simplify the readonly_shm implementation so that it conforms to the implementation on trunk. Update the test cases to agree with the new behavior. file: [cf2d1338] check-in: [9efb74ce] user: drh branch: apple-osx, size: 260999
18:18
Change the behavior of the readonly_shm=1 query parameter so that it never attempts to open the -shm file read/write. file: [b14e8b40] check-in: [f1364004] user: drh branch: trunk, size: 230627
15:03
Fix a locking error introduced when porting the new Apple locking code. file: [c254695c] check-in: [cce1f521] user: drh branch: apple-osx, size: 261446
14:19
Merge the latest trunk changes into the apple-osx branch. file: [b84dfb5c] check-in: [7e2c4898] user: drh branch: apple-osx, size: 261504
00:09
Patches to the apple-osx-377 branch so that it will compile and run on non-Mac unix platforms. file: [c936dcab] check-in: [b431a634] user: drh branch: apple-osx-377, size: 261422
2011-10-10
23:53
Forward port the Apple-specific changes from [db5b7b778c] in the apple-osx-377 branch. Fix this up so that it will compile and run on Linux. file: [ed727d58] check-in: [6cb43f6c] user: drh branch: apple-osx, size: 261316
22:11
Merging in cherry picked diffs for persist wal, alloc padding, wal-safe vacuum and sqlite3_file_control based lockstate checking file: [8f60f539] check-in: [db5b7b77] user: adam branch: apple-osx-377, size: 261422
2011-10-05
15:26
When finding the appropriate file permissions for journal files with SQLITE_ENABLE_8_3_NAMES, ignore "-" characters in the name of the containing directory. file: [9da63854] check-in: [328cc186] user: drh branch: trunk, size: 230726
2011-09-17
18:56
Remove a couple of comments that were causing problems for the amalgamation generator script. file: [6fdce406] check-in: [ffed86bf] user: drh branch: apple-osx, size: 256195
2011-09-14
19:05
Merge in the latest changes from trunk. file: [fed168d5] check-in: [2456b4d0] user: drh branch: apple-osx, size: 256263
2011-08-31
21:01
Formerly, we enabled fdatasync() on linux only. But now we learn that fdatasync() is not supported on Android. So we disable fdatasync() on Linux too. It can be reenabled at compile-time for those who really need it. file: [10e0c4dc] check-in: [70b5b309] user: drh branch: trunk, size: 230538
18:35
Always include the unixShm.id field, even when not debugging. file: [9e6e26b9] check-in: [07803476] user: drh branch: trunk, size: 230552
2011-08-30
01:23
Make sure SQLITE_FCNTL_SIZE_HINT a no-op if the chunk size is not greater than zero. file: [ae82cf32] check-in: [88b763e8] user: mistachkin branch: trunk, size: 230579
2011-08-29
11:56
Back out [05c9832e5f6eb] since it was causing a performance regression with no obvious benefit. file: [014cd466] check-in: [639cc85a] user: drh branch: trunk, size: 230577
2011-08-26
20:55
Fix several harmless compiler warnings and a documentation bug. file: [37925244] check-in: [5454d0fe] user: drh branch: trunk, size: 230722
19:18
Merge the latest trunk changes into the apple-osx branch. file: [0cac72a6] check-in: [55af8003] user: drh branch: apple-osx, size: 256347
2011-08-25
13:46
Fix the SQLITE_DISABLE_DIRSYNC compile time option. file: [1a34ca37] check-in: [6deb3ea1] user: dan branch: trunk, size: 230622
2011-08-23
20:11
If the application-defined openDirectory() function returns SQLITE_CANTOPEN, then silently ignore the error. This allows the chromium sandbox to disallow opening of directories without causing errors. file: [81341980] check-in: [880b5115] user: drh branch: trunk, size: 230544
18:06
Merge latest trunk changes into the apple-osx branch. file: [bcdfbf4f] check-in: [c5f7977b] user: dan branch: apple-osx, size: 256151
05:10
Change to test instrumentation of os_unix.c: Regard IO errors that occur within SQLITE_FCNTL_SIZE_HINT requests as benign. (This check-in was intended for trunk and went onto the branch accidentally.) file: [87ced852] check-in: [ca47da2a] user: dan branch: pager-blockalloc, size: 230426
2011-08-19
14:54
When retrying a write() after an EINTR error on unix, be sure to also rerun the previous lseek(). Ticket [e59bdf6116036a] file: [81f15448] check-in: [21452f3a] user: drh branch: trunk, size: 230333
2011-08-10
01:52
Make the openDirectory routine in os_unix.c overrideable so that it can be turned into a harmless no-op for the chromium sandbox. file: [0177d9f4] check-in: [6b236069] user: drh branch: trunk, size: 230307
2011-08-08
23:48
In os_unix.c, do not open the directory containing the database file when the database file is opened. Instead, wait until time to fsync() the directory. And do not report an error if the open fails, since some systems (Ex: AIX and a chromium sandbox) are unable to open and fsync directories. file: [d059bd9c] check-in: [713b1b7d] user: drh branch: trunk, size: 229397
23:18
Allow the unlink() system call to be overridden in os_unix.c. file: [597c854d] check-in: [8d1b5c3a] user: drh branch: trunk, size: 230537
2011-08-02
18:25
Merge all the latest trunk changes into the apple-osx branch. file: [f7883504] check-in: [77376b33] user: drh branch: apple-osx, size: 255558
2011-07-28
20:48
Merge changes for the new sqlite3_file_control() that will cause the -wal and -shm files to persist after the last database connection closes. file: [51caec43] check-in: [1b56677b] user: mistachkin branch: trunk, size: 230393
00:14
Use osStat() instead of stat() consistently in os_unix.c file: [c617801b] check-in: [9109128c] user: drh branch: trunk, size: 229977
2011-07-26
16:23
Test cases added. Fix the query mode. file: [637fa969] check-in: [a9d8794a] user: drh branch: persistent-wal-patch, size: 230387
16:03
Prototype change for a new sqlite3_file_control() that will cause the -wal and -shm files to persist after the last database connection closes. file: [294e8e98] check-in: [e34c553b] user: drh branch: persistent-wal-patch, size: 230384
2011-07-25
23:25
Enable the SQLITE_FCNTL_SIZE_HINT on unix even if SQLITE_FCNTL_CHUNK_SIZE has not been set. file: [b83e0924] check-in: [05c9832e] user: drh branch: trunk, size: 229971
2011-07-15
13:43
In os_unix.c, check if the ESTALE macro is defined before using it. file: [dcd6d578] check-in: [87017410] user: dan branch: trunk, size: 229826
2011-06-24
20:47
Merging local changes to apple-osx file: [af3aa6c0] check-in: [34f0efa2] user: adam branch: apple-osx, size: 254918
11:29
Fix some harmless compiler warnings that were occurring with THREADSAFE=0. file: [d3e7b171] check-in: [9b191bb4] user: drh branch: trunk, size: 229738
2011-06-21
01:30
Merge the latest trunk changes into the apple-osx branch. file: [aeef5f00] check-in: [76005fdc] user: drh branch: apple-osx, size: 239207
2011-06-20
18:00
Rework the autoconf script to better deal with utime() and dlopen(). file: [07acbb3e] check-in: [f69ed286] user: drh branch: trunk, size: 229753
2011-06-02
13:07
Merge the latest trunk changes, including the read-only shared memory enhancement, into the apple-osx branch. file: [56c56d4c] check-in: [ce5f95de] user: drh branch: apple-osx, size: 239125
2011-06-01
20:13
Make use of the sqlite3GetBoolean() interface for more robust processing of the readonly_shm query parameter inside of unixShmMap(). file: [fd4e9588] check-in: [1f930d7e] user: drh branch: wal-readonly, size: 229671
20:01
Simplify the wal-readonly branch so that it does not require changes to anything other than os_unix.c and wal.c and a couple of new error codes. file: [a59c0718] check-in: [d6b4709d] user: drh branch: wal-readonly, size: 229675
2011-05-31
17:08
Merge the latest trunk changes into the wal-readonly branch. file: [af3c3f6a] check-in: [2c6b5a28] user: drh branch: wal-readonly, size: 230459
2011-05-19
02:34
Bring the apple-wal-readonly branch up to date with the latest changes in apple-osx, and especially the fix for disappearing WAL transactions. file: [d5feb6cb] check-in: [57912327] user: drh branch: apple-wal-readonly, size: 239913
01:51
Pull all the latest trunk changes, and especially the fix for WAL cache spills causing transactions to disappear, into the apple-osx branch. file: [e911e44f] check-in: [8d1a6bb0] user: drh branch: apple-osx, size: 238610
2011-05-17
20:36
Add the ability to limit filenames to 8+3 using the SQLITE_ENABLE_8_3_NAMES compile-time option together with a URI parameter of "8_3_names=1". file: [6d4a58d8] check-in: [96d60985] user: drh branch: trunk, size: 229156
2011-05-12
15:32
Pull in the patches to support read-only WAL databases into a new branch off of the apple-osx branch. This also pulls in all the other pending 3.7.7 changes such as URI support. file: [dabbe23e] check-in: [97b98010] user: drh branch: apple-wal-readonly, size: 239665
2011-05-10
17:31
Add experimental support for read-only connections to WAL databases. file: [03630dd0] check-in: [bb59f986] user: dan branch: wal-readonly, size: 230211
2011-05-05
15:52
Merge the latest trunk changes into the apple-osx branch. file: [b206f9d5] check-in: [f9b149e5] user: drh branch: apple-osx, size: 238362
2011-04-25
18:01
Invoke the unix open() system call through a wrapper to avoid problems resulting from differing declarations to that function in various systems. file: [2c67d126] check-in: [4c7ff4dd] user: drh branch: trunk, size: 228908
2011-04-17
17:14
Change the prototype for the open() system call to agree with Posix. Though a faulty function prototype in a pointer cast is a seemingly innocuous error, the correct prototype is necessary for pthreads to work correctly on NetBSD. file: [4389231d] check-in: [986f2f25] user: drh branch: branch-3.7.6, size: 228411
17:09
Change the prototype for the open() system call to agree with Posix. Though a faulty function prototype in a pointer cast is a seemingly innocuous error, the correct prototype is necessary for pthreads to work correctly on NetBSD. file: [d7889a0f] check-in: [3e135748] user: drh branch: trunk, size: 228462
2011-04-15
14:33
Fix #ifs involving SQLITE_ENABLE_LOCKING_STYLE so that they check the value of that macro and not whether it is defined. file: [c80e9d42] check-in: [8775f159] user: drh branch: trunk, size: 228462
12:36
Make sure the unix backend returns SQLITE_FULL if write() fails with an ENOSPC error code. file: [dfe0ce8b] check-in: [721e3c16] user: drh branch: trunk, size: 228489
2011-04-13
20:26
Add new extended error codes for I/O errors on seek and shared-memory map. Add sqlite3_log() calls in the windows backend to record details of errors. file: [6c9db472] check-in: [fe603217] user: drh branch: trunk, size: 228461
15:42
Update the apple-osx branch to version 3.7.6.1. file: [b90124c1] check-in: [289194d6] user: drh branch: apple-osx, size: 237865
13:42
Make sure the array of overloadable system calls is always correctly sized, regardless of the compile-time configuration. Ticket [bb3a86e890c8e96ab]. file: [b2d4cd99] check-in: [c6e727ab] user: drh branch: trunk, size: 228411
2011-04-11
18:35
Do not override the fchmod system call in unix unless the SQLITE_ENABLE_LOCKING_STYLE compile-time option is engaged. file: [9541fdb1] check-in: [51029d84] user: drh branch: trunk, size: 228192
2011-04-09
18:13
Pull all the latest trunk changes into the apple-osx branch. file: [a3688d61] check-in: [4eaef4ad] user: drh branch: apple-osx, size: 237607
2011-04-06
19:15
Fix a benign inaccuracy in the os_unix.c SQLITE_FCNTL_SIZE_HINT code. file: [a8fe6214] check-in: [61a6ccbe] user: dan branch: trunk, size: 228153
2011-04-04
13:11
Merge in the latest changes from trunk. file: [4cef66b6] check-in: [6d78a25d] user: drh branch: apple-osx, size: 237692
2011-04-02
17:00
Avoid returning SQLITE_NOTFOUND when the unix xSetSystemCall interface is invoked with NULL passed as the second argument, even if all the default system calls are already installed. file: [32414676] check-in: [3b91eaaa] user: dan branch: trunk, size: 228238
2011-04-01
13:29
Move a variable declaration inside an #ifdef to avoid a compiler warning. file: [a3b4cdf5] check-in: [7a6d05df] user: drh branch: trunk, size: 228242
11:56
In os_unix.c, do not return SQLITE_BUSY to SQLite following an error in fcntl(F_UNLCK), regardless of the value of errno. file: [8115c851] check-in: [ff6dfe6e] user: dan branch: trunk, size: 228243
09:04
Fix some problems in os_unix.c when compiled with ENABLE_LOCKING_STYLE on OSX. Also some minor issues with test scripts. file: [9a129123] check-in: [8088031b] user: dan branch: trunk, size: 228224
2011-03-30
19:08
Further tests for os_unix.c. file: [be9f9d33] check-in: [a84f7711] user: dan branch: trunk, size: 228155
2011-03-29
10:04
Fix a problem in the unix VFS implementation of xNextSystemCall(). Also some typos that prevent compilation when HAVE_POSIX_FALLOCATE is defined. file: [0b377593] check-in: [bc6cce81] user: dan branch: trunk, size: 227277
2011-03-23
22:02
Change the xSetSyscall methods of the VFS so that they do not cast object pointers into function pointers. Fix other unrelated compiler warnings. file: [942a9dca] check-in: [e059152a] user: drh branch: trunk, size: 227337
2011-03-15
19:08
Make the "unix-excl" VFS work exactly like "unix" if the database file is read-only. file: [91997224] check-in: [d9846834] user: drh branch: trunk, size: 226883
2011-03-12
18:10
In the "unix-excl" VFS, use the heap for shared memory, since only a single process is able to read or write the database. file: [1debf5ea] check-in: [a05a6d40] user: drh branch: unix-excl, size: 226361
17:02
Add the new optional "unix-excl" VFS. This VFS grabs an exclusive lock on the database preventing other processes from accessing it, but continues to allow other database connections from the same process. file: [557837be] check-in: [00051c32] user: drh branch: unix-excl, size: 224909
2011-03-11
16:15
Remove an unused field from the unix sqlite3_file object. file: [c4d50608] check-in: [f957f23a] user: drh branch: trunk, size: 223302
2011-03-08
16:39
Merge the syscall-override changes into trunk. file: [58fe8845] check-in: [36d79e6f] user: drh branch: trunk, size: 223526
13:06
Fix two compiler warnings. No functional code changes. file: [67f9a304] check-in: [c829868a] user: drh branch: trunk, size: 217606
2011-03-04
15:43
Handle EINTR errors from open(). file: [cb94e52f] check-in: [a7d176b2] user: drh branch: syscall-override, size: 223497
2011-03-02
19:06
Add additional VFS methods to retrieve system call pointers and to get a list of all changeable system calls. file: [3d387679] check-in: [38558363] user: drh branch: syscall-override, size: 223284
18:01
Add more system calls to the set that can be overridden in os_unix.c. Also merge in recent fixes from trunk. file: [a13aa239] check-in: [80fac2a6] user: drh branch: syscall-override, size: 221955
17:54
Fix bugs in [7b6e30e6a7] that only show up on Mac. file: [54cd8b64] check-in: [ec55e8c6] user: drh branch: trunk, size: 217577
15:09
Proof-of-concept prototype for the proposed xSetSystemCall extension method on the VFS. file: [34f0341a] check-in: [92b5a76a] user: drh branch: syscall-override, size: 220347
02:08
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. file: [5e2e1187] check-in: [7b6e30e6] user: drh branch: trunk, size: 217597
2011-02-25
03:25
Comment out some code in os_unix.c that only runs on MacOSX with SQLITE_ENABLE_LOCKING_STYLE. file: [64a2e0eb] check-in: [4e50b036] user: drh branch: trunk, size: 218046
2011-02-23
14:33
Automatically retry system calls that fail with EINTR. This is a backport of the changes from [b9d29ea385bafc] and [af9ba2a6d2c379]. file: [ef71b989] check-in: [8609a15d] user: drh branch: branch-3.7.4, size: 217671
14:05
Backport the os_unix.c error logging enhancements from check-in [01076528a43b61a]. file: [c9f2a091] check-in: [a4333b15] user: drh branch: branch-3.7.4, size: 216634
13:53
The robust_flock() fix that accidently included some unrelated, though harmless changes. I should follow my own checklist! file: [33c062c5] check-in: [e701efbd] user: drh branch: mistake, size: 217822
13:33
Retry selected system calls on unix when they fail with EINTR. file: [866aa2d8] check-in: [b9d29ea3] user: drh branch: trunk, size: 217823
2011-02-21
11:46
Have os_unix.c call sqlite3_log() following errors in certain system calls. file: [0969a592] check-in: [01076528] user: dan branch: trunk, size: 216785
2011-01-27
18:48
Pull in all the changes from trunk up through the version 3.7.5 release candidate 1. file: [9b2e1751] check-in: [09d6c91d] user: drh branch: apple-osx, size: 222179
2011-01-26
19:46
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. file: [1be46a35] check-in: [6f2c72a0] user: drh branch: trunk, size: 213539
2010-12-22
21:48
Do not include <sys/mmap.h> if SQLITE_OMIT_WAL is defined. file: [aeaf65d2] check-in: [b82e85ec] user: drh branch: trunk, size: 213453
2010-12-21
00:16
Rearrange a variable declaration in the proxy locking code to avoid a harmless compiler warning on recent MacOS versions. file: [c43a55b4] check-in: [39bbd355] user: drh branch: trunk, size: 213422
2010-12-07
15:49
Merge in all changes to the trunk through version 3.7.4rc3. file: [49f8334f] check-in: [d2ccf7fc] user: drh branch: apple-osx, size: 222028
2010-11-29
18:36
Fix a warning in os_unix.c. file: [0240c5b5] check-in: [ee8dc8c8] user: dan branch: trunk, size: 213388
17:55
Fix compiler warnings discovered while building SQLite on http://www.devio.us/. file: [b392967b] check-in: [5602ec95] user: dan branch: trunk, size: 213382
2010-11-22
17:26
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined. file: [6bbb2ac1] check-in: [3df3e79b] user: dan branch: trunk, size: 213263
2010-11-19
23:50
Merge all the latest changes from the trunk into the apple-osx branch. file: [357e5f1b] check-in: [c8bc057c] user: drh branch: apple-osx, size: 221903
2010-11-09
00:43
Integrated proxy locking file support for WAL journal mode and double free fix file: [79cf726c] check-in: [fd4d38fa] user: adam branch: apple-osx, size: 220933
2010-11-05
18:07
Fix os_unix.c so that it works with the test_multiplex module. file: [de5be4cd] check-in: [72ba3e36] user: dan branch: trunk, size: 213263
2010-10-05
18:22
Do not embedded #if inside an assert() statement. Fix for check-in [dca8763872a] file: [00a4a84a] check-in: [d7d4a94f] user: drh branch: trunk, size: 212734
11:33
Fix an assert() failing on OSX. file: [ae27ac76] check-in: [dca87638] user: dan branch: trunk, size: 212683
2010-09-25
14:13
Do not call gethostuuid() on MacOS 10.4 and earlier, since it is not supported there. file: [dd62c4b2] check-in: [44deaaef] user: drh branch: trunk, size: 212411
2010-09-10
23:16
fixed memory leak in proxy lock file error handling file: [e10e9f08] check-in: [e01c5f3e] user: adam branch: apple-osx, size: 220428
2010-09-02
14:00
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. file: [6152042c] check-in: [36397f62] user: drh branch: trunk, size: 212303
2010-08-18
00:24
Merge the 3.7.1 pre-release snapshot changes as of 2010-08-18 into the apple-osx branch. file: [3853edc2] check-in: [866e9286] user: drh branch: apple-osx, size: 219964
00:09
Updating apple-osx with minor source fixes, database truncate and replace private calls and a bunch of conditionalization for tests running in different environments file: [b7267d7f] check-in: [5e2ee7db] user: adam branch: apple-osx, size: 217743
2010-08-11
06:14
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG. file: [11194cbc] check-in: [f854cbe0] user: drh branch: trunk, size: 212293
2010-07-28
14:26
Support FCNTL_CHUNK_SIZE on windows too. file: [ae5ca8a6] check-in: [a038688c] user: dan branch: experimental, size: 212281
2010-07-27
18:34
Add experimental unix-only file-control to grow and truncate the database file by a configurable chunk size. file: [77e963fb] check-in: [7cf0e851] user: dan branch: experimental, size: 211927
2010-07-20
18:59
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. file: [3109e0e5] check-in: [3b7330c1] user: dan branch: trunk, size: 210073
2010-07-15
18:38
Previous check-in [534aab837e] accidently reverted some changes from [a121cd80c5]. This check-in restores those changes. file: [fa606537] check-in: [abff795f] user: drh branch: trunk, size: 209607
18:32
Optionally support shared-memory in /dev/shm or other tmpfs directory using an unsupported compile-time option. file: [d27404c0] check-in: [534aab83] user: drh branch: trunk, size: 209442
14:59
When creating a journal file on unix, attempt to create it with the same permissions as the associated database file. file: [73cce169] check-in: [a121cd80] user: dan branch: trunk, size: 208748
2010-07-14
20:51
Fix a typo in a comment in os_unix.c. file: [fd7706aa] check-in: [e1e73125] user: drh branch: trunk, size: 208583
14:48
On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file. file: [417a378a] check-in: [e5d180ee] user: dan branch: trunk, size: 208580
01:45
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. file: [cfcb63d4] check-in: [90d73c66] user: drh branch: trunk, size: 206009
00:14
Change the name of the xShmClose VFS method to xShmUnmap, everywhere. file: [7845a3c9] check-in: [c2d27cf5] user: drh branch: experimental, size: 205944
2010-07-13
23:41
Tweaks to the new shared-memory interface design - mostly comment changes. file: [53a84d8a] check-in: [6336de7a] user: drh branch: experimental, size: 205836
18:44
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. file: [abefe412] check-in: [f4780bde] user: dan branch: experimental, size: 205788
2010-07-03
17:13
Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. file: [c6112f0a] check-in: [51ec0e54] user: drh branch: trunk, size: 205837
2010-07-02
17:10
Fix compiler warnings in the proxy locking code. file: [d7910391] check-in: [26c7689c] user: drh branch: mistake, size: 205899
2010-06-26
21:34
Suppress various compiler warnings. file: [ec7c7f7c] check-in: [e82d008e] user: drh branch: trunk, size: 205732
2010-06-23
17:58
Adjust the shared-memory locking range to account for the new version number values in the wal-index header. file: [4b03e5a8] check-in: [a6dc0df3] user: drh branch: trunk, size: 205679
2010-06-21
06:00
Merge latest trunk change. file: [5231a75a] check-in: [f6d26e07] user: dan branch: experimental, size: 205679
2010-06-19
23:53
Fix an uninitialized variable in os_unix.c. file: [838e0c0c] check-in: [822a0283] user: drh branch: trunk, size: 205529
15:10
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. file: [a76d1952] check-in: [2241788b] user: drh branch: trunk, size: 205530
2010-06-18
11:10
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. file: [2555f00c] check-in: [077b0e5b] user: dan branch: experimental, size: 205709
2010-06-16
10:55
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method. file: [ae173c9f] check-in: [6c5c04ee] user: dan branch: trunk, size: 205559
2010-06-14
18:01
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. file: [22bb2a8c] check-in: [58dfd83d] user: drh branch: trunk, size: 205518
16:16
Add the new xShmMap (formerly xShmPage) to os_win.c. file: [71041891] check-in: [13e7a824] user: dan branch: experimental, size: 205518
14:07
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. file: [0a57b862] check-in: [fc0cabc1] user: dan branch: experimental, size: 205519
2010-06-11
19:04
Experimental change to the xShmXXX parts of the VFS interface. file: [29dac627] check-in: [ca68472d] user: dan branch: experimental, size: 210136
2010-06-07
19:26
In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the associated file descriptor. file: [12051d37] check-in: [95cc976f] user: dan branch: trunk, size: 207867
2010-06-02
15:59
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. file: [8fa4eeb2] check-in: [f97bd520] user: drh branch: trunk, size: 207814
14:45
Changes to make WAL more robust against SHM locking failures and OOM errors. file: [7ae9257f] check-in: [ebf40413] user: drh branch: trunk, size: 207740
2010-06-01
21:02
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. file: [31511480] check-in: [fc18c4aa] user: drh branch: trunk, size: 207724
11:08
Do not hold the shared-memory mutex in os_unix.c if returning NULL. file: [29dd06f4] check-in: [9622dd46] user: dan branch: wal-incr-ckpt, size: 206886
00:03
Fix os_unix.c so that it will compile and build on a Mac. file: [fe672ba6] check-in: [bc707c83] user: drh branch: wal-incr-ckpt, size: 206740
2010-05-31
20:28
Fix issues with locking_mode=EXCLUSIVE in WAL. file: [129e60cc] check-in: [8deba0ce] user: drh branch: wal-incr-ckpt, size: 206791
16:56
Fix an inconsistent #ifdef in wal.c. Fix os_unix.c so that it does not allow moving an SHM lock directly exclusive to shared without going through unlocked. file: [18ed6016] check-in: [552658da] user: drh branch: wal-incr-ckpt, size: 206913
16:10
Get the new xShmLock interface design working on os_win.c. file: [833dbeae] check-in: [149a7082] user: drh branch: wal-incr-ckpt, size: 206663
14:28
Remove the tests that enable tracing based on the existance of the "vdbe_*" files when in SQLITE_DEBUG mode. file: [824dc63f] check-in: [cdbb4e7c] user: drh branch: wal-incr-ckpt, size: 207644
01:41
WAL runs but quickly deadlocks. file: [f95ffaf6] check-in: [ace58acb] user: drh branch: wal-incr-ckpt, size: 207630
2010-05-30
19:55
Initial code for incremental checkpoint in WAL mode. This check-in compiles on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. file: [df0c87b2] check-in: [ef3ba7a1] user: drh branch: wal-incr-ckpt, size: 207629
2010-05-26
15:06
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). file: [683ba91d] check-in: [72de0073] user: drh branch: trunk, size: 213211
2010-05-25
13:40
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. file: [a5771c3f] check-in: [40030c07] user: drh branch: trunk, size: 213378
2010-05-21
18:24
Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not seem to provide any performance gain there. file: [35ace483] check-in: [7d01309d] user: drh branch: trunk, size: 213378
2010-05-20
23:51
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. file: [5c53b43c] check-in: [1bd011c9] user: drh branch: trunk, size: 213320
2010-05-19
22:09
Cherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8] and bump the version number to 3.6.23.2. file: [fdeb37c7] check-in: [776679af] user: drh branch: branch-3.6.23, size: 194850
19:26
Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use it to give the VFS hints about the ultimate size of a database file when the file is growing. file: [6db01eb2] check-in: [2b7e3b4a] user: drh branch: trunk, size: 212821
2010-05-18
13:27
Mark the shared-memory in the WAL implementation as volatile. file: [6db3289d] check-in: [0a678790] user: drh branch: trunk, size: 212630
2010-05-17
15:33
Invoke the SQLITE_FCNTL_SIZE_HINT opcode on the sqlite3_file_control() interface for database files before extending the size of the file. The VFS can use this hint to preallocate space. file: [23b64fae] check-in: [9a083711] user: drh branch: branch-3.6.1, size: 85056
2010-05-14
20:15
Fix a typo that (by bad luck) was not a syntax error but which caused some important lines of code to be skipped when SQLITE_DEBUG was not used. file: [28caddcd] check-in: [9ef99d97] user: drh branch: trunk, size: 212630
14:52
Simplifications to the SHM implementation in os_unix.c, taking advantage of the removal of the LinuxThreads mess. file: [025da44b] check-in: [d1debe5d] user: drh branch: trunk, size: 212630
12:43
Simplify os_unix.c by removing support for LinuxThreads. Linux systems must either use NPTL or else not share database connections across threads. file: [a725e2dc] check-in: [e294b696] user: drh branch: trunk, size: 212261
11:30
Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fields and variables in os_unix.c to be more meaningful and searchable. file: [1a02adfb] check-in: [5fe529f2] user: drh branch: trunk, size: 223306
2010-05-13
08:33
Change the xShmSize() implementation in os_unix.c so that it will only increase and never decrease the size of a shared-memory segment. file: [a65eb0c5] check-in: [149d2ae4] user: drh branch: wal-refactor, size: 222921
2010-05-12
18:01
Refactoring the VFS-SHM methods used by WAL. This version compiles and runs non-WAL test cases but crashes and burns on wal.test. file: [c7ff5a94] check-in: [2b00152c] user: drh branch: wal-refactor, size: 222532
2010-05-11
16:29
Have os_unix.c use the suffix "-wal-index" for wal-index files instead of "-wal-inde". file: [c306feb1] check-in: [885e854e] user: dan branch: trunk, size: 221837
2010-05-10
19:51
Fix an off-by-one error while constructing the name of the mmap file for the wal-index under os_unix.c. file: [34fe71c6] check-in: [6e3735f7] user: drh branch: trunk, size: 221837
17:29
Fix an uninitialized variable in OSX proxy locking. file: [f3a7ea94] check-in: [96d6eaf4] user: drh branch: trunk, size: 221837
2010-05-07
20:02
Change the xShmOpen() method of the VFS to take the database file name as its argument, not the WAL file name. Also fix some unrelated compiler warnings. file: [164d85df] check-in: [a65c2939] user: drh branch: trunk, size: 221837
2010-05-06
18:48
Instead of transitioning to RECOVER state from CHECKPOINT when a recovery is required, perform the recovery while holding the CHECKPOINT lock. file: [00403219] check-in: [bb0b6021] user: dan branch: trunk, size: 221848
2010-05-05
19:09
Further simplifications to the SHM locking logic. Remove the SQLITE_SHM_QUERY option. Unify the WRITE to READ and RECOVER to READ transitions. file: [2ce91d5d] check-in: [e9bfa6e4] user: drh branch: trunk, size: 222102
18:20
Simplifications to the SHM locking implementation in os_unix.c. file: [623a195f] check-in: [9de05bfb] user: drh branch: trunk, size: 222289
2010-05-03
18:22
Fix a bug in the xCurrentTime() method of the os_unix.c VFS. file: [7ab8d2fe] check-in: [551df11a] user: drh branch: trunk, size: 222710
17:18
Fix a couple of errors in WAL code that can occur in an OOM situation. file: [2d190375] check-in: [9d3f3736] user: dan branch: trunk, size: 222710
16:30
Change the VFS definition so that all methods take a VFS object pointer as their first parameter. file: [7d706a3a] check-in: [43b5b07f] user: drh branch: trunk, size: 222677
14:32
Use VFS method xCurrentTimeInt64 instead of xCurrentTime when it is available. Provide an implementation of xCurrentTimeInt64 for os_unix.c. file: [f3c0faad] check-in: [ab77b3ae] user: drh branch: trunk, size: 222285
2010-05-01
20:17
Change the SHM interface so that it does not take the name of the shared object but rather the name of the WAL file and derives its own name from that. Remove the xShmDelete method from the VFS and replace it with a delete flag on xShmClose. file: [5c821e4e] check-in: [94dea5f9] user: drh branch: wal, size: 221714
18:23
Remove the xShmPush and xShmPull methods from the VFS. file: [d003631a] check-in: [69e07fdb] user: drh branch: wal, size: 221154
17:57
Define an invariant to guarantee deadlock-free operation of SHM in os_unix.c and check that invariant with assert() statements. file: [bb8b65d9] check-in: [6af2dca7] user: drh branch: wal, size: 221278
17:50
Rework mutexes on the SHM implemention for os_unix to avoid a deadlock during WAL recovery. file: [d402146b] check-in: [1a0f69be] user: drh branch: wal, size: 220835
16:40
Support compile-time option SQLITE_OMIT_WAL, for building without WAL support. file: [27ec47f2] check-in: [9b230c43] user: dan branch: wal, size: 220210
2010-04-30
17:47
Change the SHM VFS logic in os_unix.c so that it does not hold an exclusive lock n the mapped memory when also holding a CHECKPOINT lock. This improves concurrency between readers and checkpointers. file: [559f9f18] check-in: [8660cda6] user: drh branch: wal, size: 219960
16:48
In the debugging output for SHM-LOCK in os_unix.c, use symbolic names for the lock states rather than raw numbers. file: [edbc13a3] check-in: [2afc33de] user: drh branch: wal, size: 219831
16:41
Fix a problem in the previous commit. Both unixShm.lockState and unixShm.readLock should be set to READ when downgrading from a WRITE to a READ lock file: [72413d32] check-in: [90119fec] user: dan branch: wal, size: 219555
16:38
Fix a bug whereby upgrading from a READ_FULL to a WRITE lock, and then back to a read lock was dropping all WAL locks. file: [d0deee99] check-in: [55f5af5e] user: dan branch: wal, size: 219541
15:54
Fix a couple uninitialized variables in the xShmLock method of the unix VFS. Improved debugging logic for xShmLock. file: [7d10d3a8] check-in: [69567c5f] user: drh branch: wal, size: 219507
14:39
Separate the concepts of underlying storage size and mapped size in the VFS shared-memory implementation. file: [b2322d8f] check-in: [4cbe49f1] user: drh branch: wal, size: 219095
11:43
Add a missing walIndexUnmap() call to the checkpoint code. Change a couple of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT. file: [7451a717] check-in: [1f9e8c5c] user: dan branch: wal, size: 218014
10:06
Add missing mutexes to unixShmClose(). file: [f5e41bd2] check-in: [a4741cb5] user: dan branch: wal, size: 218004
09:52
Fix a couple of assert() statements in os_unix.c and wal.c. Combine sqlite3WalIsDirty() with sqlite3WalUndo(). file: [685b0347] check-in: [a8f958be] user: dan branch: wal, size: 218014
09:32
Add a missing walIndexUnmap() to sqlite3WalSnapshotOpen(). file: [4237d2a6] check-in: [72b95fde] user: dan branch: wal, size: 217997
02:13
The first 6 WAL tests now work. It's a start. file: [d9b2b017] check-in: [a92c1851] user: drh branch: wal, size: 217997
2010-04-29
22:34
Refactor wal.c to use the VFS. This check-in compiles and links and works ok as long as you leave WAL turned off, but WAL does not work. file: [bf4cc543] check-in: [62db5fa3] user: drh branch: wal, size: 218067
16:40
Untested implementation of the shared-memory dead-man-switch. file: [f0e002e7] check-in: [70661128] user: drh branch: wal, size: 217997
15:17
Progress towards a VFS that will support WAL. Locking code is in place but is untested. Still no support for the DMS. file: [340c5037] check-in: [1bde41cf] user: drh branch: wal, size: 216632
2010-04-28
17:21
Changes to the interface design for the xShmLock method of the VFS. file: [c8b7d1e0] check-in: [348409de] user: drh branch: wal, size: 199503
2010-04-27
11:49
Add the xShmRelease() method to the VFS. The os_unix.c implementation of the shared memory logic is still non-functional. file: [332ff918] check-in: [ed715b47] user: drh branch: wal, size: 199958
2010-04-26
00:04
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. file: [1acc8542] check-in: [f5e615c2] user: drh branch: wal, size: 199468
2010-04-12
19:00
Import experimental write-ahead-logging code. file: [5bf0015c] check-in: [409d61ba] user: dan branch: wal, size: 194698
2010-03-05
13:53
Adjustments to #ifdefs so that the #include of <sys/mount.h> is not included twice, because that confuses the amalgamation builder. file: [148d2f62] check-in: [27413fc8] user: drh branch: trunk, size: 194659
13:41
Adjust some #ifdefs so that the build works on Mac both with and without SQLITE_ENABLE_LOCKING_STYLE. file: [d4832e89] check-in: [0cc981f1] user: drh branch: trunk, size: 194636
2010-03-04
22:36
Second thoughts: Let Tiger users set SQLITE_ENABLE_LOCKING_STYLE=0. Was: Change SQLITE_ENABLE_LOCKING_STYLE to default off, even on Macs, since older Macs (Tiger) cannot compile the latest proxy locking sources. file: [0cdbfd79] check-in: [1a0fa8d1] user: drh branch: mistake, size: 194689
16:12
Suppress harmless compiler warnings. file: [28439804] check-in: [fc2c63ac] user: drh branch: trunk, size: 194581
2010-02-26
13:07
Avoid incorrect compiler warnings by doing a couple of needless variable initializations. file: [97c2d5dd] check-in: [8f29490d] user: drh branch: trunk, size: 194597
2010-02-25
02:32
Merge in all of the logging enhancements. This is a cherrypick merge of the following check-ins: [103321e37a], [a8076aede3], [6d910245ad], [7c4cca6d1a], [edea3bb740], [1a6d4bb130], [a8c984c1d6], [69a493182f], and [1168763d2c]. file: [bf7f66b0] check-in: [46f406b2] user: drh branch: branch-3.6.22, size: 186600
2010-02-23
20:11
Continuing improvements to error reporting and the sqlite3_log() routine. file: [79f2b9ae] check-in: [edea3bb7] user: drh branch: trunk, size: 194593
17:36
Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging output for CORRUPT, and CANTOPEN errors. file: [13b5d1ff] check-in: [7c4cca6d] user: drh branch: trunk, size: 194578
2010-02-16
12:18
Change a C++ style comment in os_unix.c to use normal C style commenting. file: [0af0a55e] check-in: [7a193309] user: dan branch: trunk, size: 194553
2010-02-05
18:00
Make sure file descriptors are closed before unlinking in VxWorks. file: [85479b27] check-in: [f64b81f1] user: drh branch: trunk, size: 194550
2010-01-20
13:07
Move the Apple OS-X VFS changes into the trunk. file: [0b972695] check-in: [571594bf] user: drh branch: trunk, size: 194513
2010-01-06
13:12
Update the OS-X branch to include all trunk changes through version 3.6.22. file: [b0f41dce] check-in: [541e2b48] user: drh branch: apple-osx, size: 197168
2010-01-05
00:14
Fix a case in os_unix.c where two structures that might have uninitialized padding bytes are compared using memcmp(). file: [b2451079] check-in: [e02f2556] user: drh branch: trunk, size: 180119
2009-12-07
23:53
Merge all changes associated with the version 3.6.21 release into the OS-X branch. file: [afabe88b] check-in: [ad08794d] user: drh branch: apple-osx, size: 197149
2009-12-04
14:25
In the OSTRACE debugging macros in os_unix.c, identify the VFS currently in use. file: [fe85acfe] check-in: [082b8da0] user: drh branch: trunk, size: 180096
2009-11-09
19:30
Fix for lock structure sharing with AFP-style locking file: [6b74fa83] check-in: [62f15c0a] user: adam branch: apple-osx, size: 196521
2009-11-06
04:13
Fix the backup API so that a backup from an empty database to a non-empty database works. Ticket [0bf974bdf9]. The only changes are in assert() statements. file: [bdd6ca09] check-in: [ddb71cd9] user: drh branch: trunk, size: 179975
2009-11-05
18:31
Fix an undefined variable on non-Mac builds. file: [1d06b265] check-in: [9552de8f] user: drh branch: apple-osx, size: 196239
2009-11-03
22:34
Customizations for OSX contributed by Apple. file: [cb7a1418] check-in: [941a01eb] user: adam branch: apple-osx, size: 196172
2009-11-01
19:26
Fix compiler warnings. Better comments on some variables associated with LIKE/GLOB processing in the query planner. file: [a4b4ea92] check-in: [cfa2db0f] user: drh branch: trunk, size: 179469
2009-10-07
23:42
Use memcpy() rather than structure assignment so that memcmp() can later be used for comparison. Ticket [8550ecca70] file: [5686c0e4] check-in: [56f609da] user: drh branch: trunk, size: 179457
2009-09-10
19:20
Make sure the threadsOverrideEachOthersLocks variable is only referenced by linux systems on a threadsafe compile. file: [53692729] check-in: [e9d064bd] user: drh branch: trunk, size: 179433
2009-09-09
18:46
Trying to open a transaction in one thread and close it in another is a misuse with LinuxThreads. Doing so may cause memory and file-descriptors to be leaked. Update an assert() and some test cases to account for this. file: [4e5ce609] check-in: [ef99eb57] user: dan branch: trunk, size: 179382
16:10
Suppress some harmless compiler warnings. file: [0b94e581] check-in: [f0c72a53] user: drh branch: trunk, size: 178986
2009-09-03
16:23
Add the "unix-wfl" VFS that does whole-file locking in order to help NFS do better cache coherency. file: [52b10971] check-in: [2aeab80e] user: drh branch: trunk, size: 178982
2009-08-27
17:56
Patch to the named semaphore locking mechanism used by VxWorks. file: [f14ff07a] check-in: [609c5341] user: drh branch: trunk, size: 175560
2009-08-25
05:57
Fix a bad interaction between "proxy-locking" and aa6acfa8ca. file: [96e2e409] check-in: [2a5c9e1d] user: dan branch: trunk, size: 175559
2009-08-24
18:57
Fix some errors in aa6acfa8ca. file: [5fc8443b] check-in: [82d1934a] user: dan branch: trunk, size: 174907
2009-08-22
11:39
Fix a problem in os_unix.c where a malloc failure could lead to a leaked file descriptor. file: [f151f27d] check-in: [aa6acfa8] user: dan branch: trunk, size: 174944
2009-08-21
17:18
When a database file is opened, try to find an unused file descriptor to reuse. This change affects unix (and other systems that use os_unix.c) only. Fix for cvstrac ticket #4018. file: [1546de71] check-in: [9b4d9ab6] user: dan branch: trunk, size: 173397
08:29
Add assert() statements to os_unix.c to check that the mutex is held when it should be. file: [85f6ed28] check-in: [11a669b6] user: dan branch: trunk, size: 170179
2009-08-17
15:52
Move error simulation code from the sqlite3_os_init() functions into a wrapper. file: [6895098a] check-in: [67ad21ab] user: dan branch: trunk, size: 169208
15:16
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly. file: [aea2a5c1] check-in: [904a371c] user: dan branch: trunk, size: 169476
2009-07-03
12:57
Test the result of pthread_create() and do not call pthread_join() if the thread creation failed. Ticket #3933. (CVS 6839) file: [cdb2a08b] check-in: [304c5110] user: drh branch: trunk, size: 169267
2009-06-17
13:09
Suppress some -Wextra compiler warnings from GCC. (CVS 6774) file: [b64129c2] check-in: [59ec937c] user: drh branch: trunk, size: 169252
2009-06-15
20:45
Changes to allow a clean compile with no floating-point instructions generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763) file: [f00dbdc0] check-in: [1591b832] user: drh branch: trunk, size: 169240
2009-05-08
11:34
Fix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620) file: [e55d977c] check-in: [254ca327] user: danielk1977 branch: trunk, size: 169130
2009-04-07
05:35
Compile fixes and improvements for vxwork: fixed deadlock in semClose, detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460) file: [9ad9f450] check-in: [efd0682b] user: chw branch: trunk, size: 169122
00:35
It is OK for a unix file descriptor to be zero. It just can't be negative. Adjust an assert accordingly. Ticket #3781. (CVS 6457) file: [e5eef59c] check-in: [47aa7eb0] user: drh branch: trunk, size: 167896
2009-03-30
07:39
Another change related to (6401) and (6402): When an attempt to unlock a file fails in os_unix.c, close all files held open waiting for the unlock event anyway. This prevents a file-descriptor leak when testing IO errors. (CVS 6406) file: [5d667f24] check-in: [50fbcdea] user: danielk1977 branch: trunk, size: 167901
2009-03-28
23:47
Previous commit ((6401)) did not quite fix the problem. This should work better. (CVS 6402) file: [b62e660f] check-in: [2e7d3cc9] user: drh branch: trunk, size: 167945
23:23
In the unix-backend, when simulating an I/O error on an unlock operation, still mark the connection as unlocked to avoid a future assert(). (CVS 6401) file: [344fb50f] check-in: [fb35cff8] user: drh branch: trunk, size: 167911
2009-03-25
01:06
Use fdatasync() only on linux, unless -Dfdatasync=fdatasync is set at compilation time. (CVS 6383) file: [7bf3ebde] check-in: [cbf2ca4c] user: drh branch: trunk, size: 167868
2009-03-21
14:56
Rig the unix backend to use fdatasync() by default, without having to set the HAVE_FDATASYNC macro. Systems that do not support fdatasync() can be compiled using -Dfdatasync=fsync. (CVS 6368) file: [a20fe61c] check-in: [a3315627] user: drh branch: trunk, size: 167691
14:41
On unix, always use fdatasync() instead of fsync() when available, even if the file size changes, since (we are told) fdatasync() will automatically flush the inode when the file size changes. (CVS 6367) file: [8f6ffa95] check-in: [0d6b11bc] user: drh branch: trunk, size: 167695
2009-03-01
22:29
Suppress some compiler warnings (where possible). Ticket #3696. (CVS 6331) file: [52352674] check-in: [a2373e54] user: drh branch: trunk, size: 166898
2009-02-09
17:34
Add assert() statements to os_unix.c which fire if there is a read or write for the locking region of a database file. (CVS 6270) file: [4e916caf] check-in: [93e792ff] user: drh branch: trunk, size: 166840
05:32
Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for #3642. (CVS 6268) file: [9f89f98c] check-in: [8227af34] user: danielk1977 branch: trunk, size: 166036
2009-02-03
15:27
Check at the write() call to work around the msdos bug in OSX actually succeeds and throw an error if it does not. #ifdef out the work-around for all platforms other than OSX. Ticket #3633. (CVS 6237) file: [f0fce304] check-in: [b054b569] user: drh branch: trunk, size: 165999
2009-01-16
23:47
Remove a harmless UMR that occurs inside some debugging code. (CVS 6190) file: [c74255cc] check-in: [191c399f] user: drh branch: trunk, size: 165920
2009-01-15
04:30
Avoid using ENOTSUP on systems that do not define that symbol. Ticket #3512. (CVS 6182) file: [c0ebce13] check-in: [fcb6c677] user: drh branch: trunk, size: 165892
2009-01-14
23:03
Add asserts to detect if a transaction commits without first incrementing the transaction counter. These asserts are intended to prevent future problems similar to ticket #3584. (CVS 6179) file: [5d176993] check-in: [b676ccfd] user: drh branch: trunk, size: 165884
2009-01-09
21:41
Coverage improvements in pragma.c. Change the __DARWIN__ macro to __APPLE__, which is available by default on Leopard. (CVS 6153) file: [7825c617] check-in: [64c56226] user: drh branch: trunk, size: 163019
2009-01-08
14:36
Allow database files to be created in the root directory on unix. Ticket #3570. (CVS 6141) file: [a1f05f59] check-in: [81014334] user: drh branch: trunk, size: 163036
2008-12-22
03:37
Fix a variable type to prevent a warning in the proxy-locking code. (CVS 6051) file: [e6eacc7e] check-in: [d9595b96] user: danielk1977 branch: trunk, size: 163045
2008-12-11
02:56
Fix the TCL test harness so that it compiles and runs on OSX with SQLITE_ENABLE_LOCKING_STYLE. (CVS 6017) file: [96b4a6e8] check-in: [561d5de1] user: drh branch: trunk, size: 163036
2008-12-10
19:26
Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) file: [970e4a98] check-in: [c872d554] user: drh branch: trunk, size: 163034
2008-12-08
18:19
The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) file: [cec838fe] check-in: [73c7302c] user: drh branch: trunk, size: 162993
2008-12-04
12:34
Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is disabled. Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is disabled. (CVS 5976) file: [e625d228] check-in: [4697249f] user: drh branch: trunk, size: 161123
2008-12-03
22:48
Fix a missing forward declaration that is needed when SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972) file: [bc3e50bc] check-in: [24235300] user: drh branch: trunk, size: 161040
22:32
Reorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS 5971) file: [540aebcd] check-in: [31f6090e] user: drh branch: trunk, size: 160793
21:26
Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970) file: [199a3f3a] check-in: [3efedac6] user: aswift branch: trunk, size: 160056
19:34
Continue with the cleanup of os_unix.c. (CVS 5969) file: [0c5fa756] check-in: [215d36ea] user: drh branch: trunk, size: 159525
2008-11-29
02:20
Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967) file: [a5c0e3fe] check-in: [c13df031] user: drh branch: trunk, size: 148331
00:56
Continuing work on the os_unix.c refactoring. Removed all of the LOCKING_STYLE_* constants and instead pass around pointers to the underlying sqlite3_io_method objects. (CVS 5966) file: [9c5269d6] check-in: [1017d2fb] user: drh branch: trunk, size: 147578
2008-11-28
15:37
First step in refactoring os_unix.c. This is work in progress. The code compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE is turned off), but there are a few test failures. (CVS 5965) file: [26f4b3dd] check-in: [7825cd63] user: drh branch: trunk, size: 147078
2008-11-25
12:07
Move the definition of function transferOwnership() in os_unix.c to below the static functions it calls. (CVS 5954) file: [add9937a] check-in: [622cb597] user: danielk1977 branch: trunk, size: 133962
2008-11-21
22:21
Factor out and simplify the canonical pathname logic in the VxWorks OS interface. (CVS 5943) file: [d6218ae6] check-in: [adb0aafa] user: drh branch: trunk, size: 133953
20:32
Work toward cleaning up and refactoring the os_unix.c VFS module. Change IS_VXWORKS to OS_VXWORKS. The VxWorks implementation can now be built and tested on Linux using -DOS_VXWORKS=1 -Dsem_t=int -DPATH_MAX=512 -DNO_GETTOD=1. (CVS 5942) file: [d3803e7c] check-in: [30a0132a] user: drh branch: trunk, size: 133889
00:24
Fixes to the proxy locking so that os_unix.c compiles on linux with proxy locking omitted. (CVS 5935) file: [28cc4da7] check-in: [6f910b70] user: drh branch: trunk, size: 132265
00:10
Added support for proxy file locking style Added pragma support for controlling proxy file locking Added file control access to last errno and proxy locking Added support for TMPDIR environment variable Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934) file: [bdb0b664] check-in: [b9bc36d3] user: aswift branch: trunk, size: 132214
2008-11-19
16:52
Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927) file: [03c76b52] check-in: [d1abe8a1] user: danielk1977 branch: trunk, size: 104958
14:35
Fix a few more compiler warnings. (CVS 5926) file: [975cdd3e] check-in: [70b2f683] user: danielk1977 branch: trunk, size: 104849
13:52
In os_unix.c, use "IS_VXWORKS" instead of "defined(__RTP__) || defined(_WRS_KERNEL)". Purely because it's easier on the eyes. (CVS 5925) file: [88cfaa01] check-in: [92c91a6c] user: danielk1977 branch: trunk, size: 104552
11:35
Eliminate some of the "unused parameter" warnings in os_unix.c. (CVS 5923) file: [d8555013] check-in: [2f5aaad9] user: danielk1977 branch: trunk, size: 105649
09:05
Changes to avoid "unused parameter" compiler warnings. (CVS 5921) file: [a5f8a41b] check-in: [88134322] user: danielk1977 branch: trunk, size: 104593
2008-11-17
19:18
Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) file: [16b09818] check-in: [8009220c] user: danielk1977 branch: trunk, size: 104441
08:05
Added support for vxworks >= 6.4; RTP mode tested, kernel mode untested. (CVS 5910) file: [a25bea30] check-in: [f45a1493] user: chw branch: trunk, size: 104424
2008-11-11
18:34
Change the way threadsOverrideEachOthersLocks() works to avoid trying to write-lock a (potentially) read-only files. Also, assume that on non-linux systems threads do override each others locks. Ticket #3472. (CVS 5883) file: [af390f03] check-in: [8ecae094] user: danielk1977 branch: trunk, size: 92298
2008-11-07
00:06
Add documentation to make it clear that short reads from xRead in the VFS must be zero-filled. (CVS 5867) file: [d17f694e] check-in: [fb311d6f] user: drh branch: trunk, size: 91973
2008-10-16
13:27
Fix an error in (5826). (CVS 5828) file: [5e3b3c9a] check-in: [8065a92f] user: danielk1977 branch: trunk, size: 91924
2008-10-15
16:02
Do not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826) file: [85d7e98e] check-in: [8ef14164] user: danielk1977 branch: trunk, size: 91923
2008-10-14
17:58
Fix the xRandomness() method on the unix VFS to return the number of bytes of randomness obtained. (CVS 5821) file: [48527028] check-in: [b7687e2f] user: drh branch: trunk, size: 91878
2008-09-24
09:12
Fix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399. (CVS 5740) file: [f33b69d8] check-in: [0fb98c35] user: danielk1977 branch: trunk, size: 91801
2008-09-23
10:23
Enable the LOCKING_STYLE extensions by default on a Mac. Leave them disabled on all other posix platforms. (CVS 5737) file: [ee778087] check-in: [bae1d5b1] user: drh branch: trunk, size: 91785
2008-09-22
11:46
Add instrumentation to os_unix.c to test that a return value of SQLITE_FULL from an xSync() callback is handled correctly. (CVS 5730) file: [badd226d] check-in: [7bd2da93] user: danielk1977 branch: trunk, size: 91531
2008-09-15
04:20
Check if error code ENOTSUP is supported before using it. Ticket #3375. (CVS 5697) file: [8f4def6a] check-in: [c32cb106] user: danielk1977 branch: trunk, size: 91340
2008-09-04
17:17
Add support for the SQLITE_THREADSAFE=2 and SQLITE_DEFAULT_MEMSTATUS compilation options. (CVS 5676) file: [075c3e47] check-in: [85c2a589] user: danielk1977 branch: trunk, size: 91314
06:22
If SQLITE_ENABLE_LOCKING_STYLE is defined, have the os_unix.c module offer the following extra VFS implementations for explicitly selecting a locking-style: "unix-none", "unix-afp", "unix-posix", "unix-flock" and "unix-dotfile". (CVS 5674) file: [e99f82f1] check-in: [6e8fb646] user: danielk1977 branch: trunk, size: 91325
2008-08-22
18:41
quieting compiler warning about pointer/int conversion size mismatch (CVS 5602) file: [4665cef7] check-in: [f8a70501] user: aswift branch: trunk, size: 91333
00:47
Fix os_unix.c so that it will compile on Linux again. (CVS 5588) file: [f1be9970] check-in: [24167082] user: drh branch: trunk, size: 91316
00:22
Added SQLITE_IOERR_LOCK extended error code and support for detecting and returning errors in the os_unix lock, unlock and check reserved lock variants, also added support for populating and returning system error codes so that they can be accessed via xGetLastError, unfortunately xGetLastError can't seem to access the unixFile structure where the lastErrno is recorded. (CVS 5586) file: [9fddf873] check-in: [c1af14e2] user: aswift branch: trunk, size: 91288
2008-07-30
17:28
When opening a zero-size database on unix, write one byte into the file before interrogating the inode number. This works around issues with msdos filesystems mounted on OS-X. Ticket #3260. (CVS 5504) file: [fe0dbc35] check-in: [a480a884] user: drh branch: trunk, size: 84865
15:27
In the unix OS implementation, replace inode hash tables with linked lists. (CVS 5503) file: [c778a6b7] check-in: [db4022db] user: drh branch: trunk, size: 83770
2008-07-10
00:32
Remove unused code. Test coverage enhancements. Modify the algorithm used to select column names for VIEWs of joins so that the constructed column names omits the underlying table names. (CVS 5386) file: [1df6108e] check-in: [636cd723] user: drh branch: trunk, size: 82949
2008-06-30
10:16
Fix a malloc() failure related problem in os_unix.c. (CVS 5328) file: [3d19f049] check-in: [ba8819a6] user: danielk1977 branch: trunk, size: 82915
2008-06-28
11:23
Rearrange some ENABLE_LOCKING_STYLE related code in os_unix.c. (CVS 5324) file: [715e702b] check-in: [f70d552b] user: danielk1977 branch: trunk, size: 82897
2008-06-26
10:41
Change the OS_XXX pre-processor symbols to SQLITE_OS_XXX. Symbols "OS_UNIX", "OS_WIN", "OS_WINCE", "OS_OS2" and "OS_OTHER" are now "SQLITE_OS_UNIX", "SQLITE_OS_WIN", "SQLITE_OS_WINCE", "SQLITE_OS_OS2" and "SQLITE_OS_OTHER", respectively. (CVS 5311) file: [8b5116ab] check-in: [cdd4cf4c] user: danielk1977 branch: trunk, size: 85035
2008-06-25
17:19
Remove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register their VFS implementations by calling sqlite3_vfs_register() from within sqlite3_os_init(). (CVS 5307) file: [800138f4] check-in: [8fa33b79] user: danielk1977 branch: trunk, size: 85021
2008-06-18
17:09
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) file: [b8c07b0c] check-in: [5059644c] user: danielk1977 branch: trunk, size: 85330
2008-06-13
18:24
Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) file: [dd4a7b19] check-in: [a03c5af1] user: drh branch: trunk, size: 85326
2008-06-06
15:49
Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192) file: [47936aee] check-in: [b8f1da52] user: danielk1977 branch: trunk, size: 85108
11:11
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190) file: [067a4d5a] check-in: [5173b3e8] user: danielk1977 branch: trunk, size: 84979
2008-06-05
11:39
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) file: [bea384cc] check-in: [4226ac54] user: danielk1977 branch: trunk, size: 84455
2008-05-29
20:22
Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5178) file: [a6b02934] check-in: [9883b406] user: shane branch: trunk, size: 84304
2008-05-16
04:51
Add more version tags to files that lack them. Ticket #3120. (CVS 5137) file: [06dceb32] check-in: [81a8c70e] user: danielk1977 branch: trunk, size: 84306
2008-05-05
16:56
Better error messages when trying to open a large file using a version of SQLite that omits large file support. Tickets #3096 and #3094. (CVS 5085) file: [a810e2ae] check-in: [bdd89cd2] user: drh branch: trunk, size: 84239
2008-04-30
08:56
Fix test for buffer overrun in unixGettempname(). Fix for #3091. (CVS 5069) file: [8cf512c4] check-in: [fc0ca647] user: danielk1977 branch: trunk, size: 84118
2008-03-19
14:15
Add a new api sqlite3_randomness() for providing access to SQLite's internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) file: [fdec4e5e] check-in: [15110ea0] user: drh branch: trunk, size: 83985
2008-03-07
20:14
Another fix to the OsUnlock I/O error logic. (CVS 4839) file: [4cdd17e7] check-in: [22bd537e] user: drh branch: trunk, size: 83984
19:51
Correctly handle I/O errors that occur during OsUnlock(). Before this fix, an I/O error during OsUnlock() could lead to database corruption. That is not a serious problem, though, since errors during OsUnlock() are not possible on most systems. (CVS 4838) file: [04ff58d8] check-in: [b4c1258e] user: drh branch: trunk, size: 83978
15:34
Cleanup the locking-style code in os_unix.c. (CVS 4837) file: [bf339cd6] check-in: [40f55c09] user: drh branch: trunk, size: 83743
00:27
Updates to the locking-style code in os_unix.c. Not yet working. (CVS 4834) file: [b21695b8] check-in: [6ebce3b7] user: drh branch: trunk, size: 84167
2008-01-16
17:46
Get all tests running without memory leaks. (CVS 4714) file: [e4daef76] check-in: [5807921f] user: drh branch: trunk, size: 84168
2007-12-13
21:54
Change all instances of "it's" in comments to either "its" or "it is", as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) file: [4e67737f] check-in: [4e91a267] user: drh branch: trunk, size: 84144
2007-12-06
13:26
Use the specified buffer length, not the maximum buffer length in unixFullPathname() and related functions. (CVS 4595) file: [10641ed9] check-in: [f015a387] user: drh branch: trunk, size: 84145
2007-10-30
17:28
Avoid leaking a file descriptor after a malloc failure on unix. (CVS 4518) file: [db675545] check-in: [c249d5da] user: danielk1977 branch: trunk, size: 84125
2007-10-23
15:59
Add comments to the code warning that _XOPEN_SOURCE might need to be defined manually if using USE_PREAD or USE_PREAD64. (CVS 4509) file: [e556e86a] check-in: [d7ed7cd0] user: drh branch: trunk, size: 84092
2007-09-20
10:02
Fixes for uninitialized variables. Tickets #2658 and #2659. (CVS 4437) file: [308bd8ad] check-in: [27fe1288] user: drh branch: trunk, size: 83782
08:38
The code is correct as it contains an assert(3) in the "default" switch case, but GCC 4.3 is not able to detect this and instead complains with "warning: 'amode' may be used uninitialized in this function". Hence, although the assert(3) already protects the code here, get rid of this compiler warning by doing a simple initialization of the "amode" variable. (CVS 4436) file: [89283ae6] check-in: [91831ff2] user: rse branch: trunk, size: 83775
2007-09-17
07:02
Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433) file: [8d4f5e95] check-in: [8b29f5fb] user: danielk1977 branch: trunk, size: 83771
06:06
Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) file: [2c6a5507] check-in: [ad3687b1] user: danielk1977 branch: trunk, size: 83526
2007-09-05
13:56
Remove the unixFile.isOpen variable (no longer in use). (CVS 4401) file: [522486e2] check-in: [1786e9c8] user: danielk1977 branch: trunk, size: 83526
2007-09-03
17:42
Unix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384) file: [99bf97b3] check-in: [ed15db46] user: drh branch: trunk, size: 83692
15:19
Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Some test cases added but more are needed. Ticket #2616. (CVS 4376) file: [75521336] check-in: [020a2b10] user: drh branch: trunk, size: 83689
2007-09-01
16:16
Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364) file: [3b1b9c6d] check-in: [fb27692a] user: danielk1977 branch: trunk, size: 83280
06:51
Fix for registration of non-default vfs objects. (CVS 4360) file: [90437051] check-in: [5f48fb95] user: danielk1977 branch: trunk, size: 82760
2007-08-31
18:34
Remove the xLockState method for sqlite3_io_methods. Replace it with a defined call to xFileControl(). This simplifies the interface and also gives us coverage testing of sqlite3_file_control(). (CVS 4355) file: [4d36cd03] check-in: [306586c4] user: drh branch: trunk, size: 82492
16:11
Initial implementation of the sqlite3_file_control() interface. Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) file: [5c8fd11f] check-in: [d3ab3e39] user: drh branch: trunk, size: 82663
2007-08-30
16:13
Prevent sqlite from opening directories as databases under unix. Fix for test cae in misc7.test. (CVS 4342) file: [84dcfc01] check-in: [e3054650] user: danielk1977 branch: trunk, size: 82636
14:49
Remove the SYNC_BARRIER flag. (CVS 4337) file: [0f3997dc] check-in: [5a22d869] user: danielk1977 branch: trunk, size: 82619
2007-08-27
23:26
Work around problem with forward declarations of constants in MSVC in the amalgamation. Ticket #2574. (CVS 4304) file: [89bf24aa] check-in: [dc80b2e1] user: drh branch: trunk, size: 82671
21:10
Added the 34to35.html document describing the changes between 3.4.2 and 3.5.0. Minor interface cleanups. (CVS 4302) file: [7a340c71] check-in: [0791f917] user: drh branch: trunk, size: 82657
2007-08-24
16:08
Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the sqlite3_vfs_release() interface. Less memory allocated for a pager in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287) file: [27b1fad5] check-in: [b8451da3] user: drh branch: trunk, size: 82661
03:51
The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) file: [c45b20f8] check-in: [3a68fcdd] user: drh branch: trunk, size: 82735
2007-08-23
02:47
Improvements to memory leak detection. The --backtrace=NNN option is now recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) file: [3ff776e0] check-in: [21f6b310] user: drh branch: trunk, size: 82754
2007-08-22
20:18
The malloc.test script now passes all tests with no errors. (CVS 4271) file: [3e1ce27a] check-in: [db818430] user: drh branch: trunk, size: 82526
2007-08-21
13:51
Remove the obsolete static mutexes. Use only the lastest static mutex code. (CVS 4259) file: [7aad42b1] check-in: [6225cd46] user: drh branch: trunk, size: 82636
10:44
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) file: [55e4d3c4] check-in: [fbbd5bda] user: drh branch: trunk, size: 82622
2007-08-20
22:48
Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) file: [41a737d1] check-in: [1315bd8e] user: drh branch: trunk, size: 82638
16:07
Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248) file: [10fb60a8] check-in: [91779041] user: danielk1977 branch: trunk, size: 82756
14:23
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247) file: [7ff8ad09] check-in: [40f66ada] user: danielk1977 branch: trunk, size: 82758
06:44
Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244) file: [dc726e5f] check-in: [41f2175b] user: danielk1977 branch: trunk, size: 83215
05:36
Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243) file: [bf192a86] check-in: [cb24cda1] user: danielk1977 branch: trunk, size: 87955
2007-08-18
10:59
Further progress on migration to sqlite3_vfs. (CVS 4242) file: [07c91dfd] check-in: [a258c4ec] user: danielk1977 branch: trunk, size: 87749
2007-08-17
16:50
Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241) file: [4b27202b] check-in: [08a0f480] user: danielk1977 branch: trunk, size: 85664
15:53
Begin migration to using sqlite3_vfs interface. (CVS 4240) file: [bf86c474] check-in: [af3e3c7a] user: danielk1977 branch: trunk, size: 86029
2007-08-16
13:01
Remove the thread specific data subsystem from the unix build. Remove legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237) file: [e685354a] check-in: [3d60c14a] user: drh branch: trunk, size: 85615
10:09
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) file: [7c7dcb7d] check-in: [77b16713] user: danielk1977 branch: trunk, size: 88449
04:30
Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) file: [67601899] check-in: [deb7ecd6] user: drh branch: trunk, size: 88434
2007-08-15
17:08
Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228) file: [05ad65c3] check-in: [af9503da] user: danielk1977 branch: trunk, size: 88727
2007-08-07
17:13
Remove all tabs from source code files. Ticket #2556. (CVS 4198) file: [9d2a421a] check-in: [7550dd1d] user: drh branch: trunk, size: 88512
2007-06-29
12:04
Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146) file: [4099d05d] check-in: [f1e5fed8] user: drh branch: trunk, size: 88443
2007-06-19
10:50
Cast the 2nd parameter of ftruncate to off_t to work around bugs in some unix implementations. Ticket #2425. (CVS 4089) file: [113ae355] check-in: [0b20a696] user: drh branch: trunk, size: 88290
2007-06-08
18:27
Use C-sylte comments exclusively, never C++ comments. Ticket #2406. (CVS 4052) file: [f2ccf2e9] check-in: [8f5b789f] user: drh branch: trunk, size: 88283
2007-05-04
13:15
Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) file: [cb1fb044] check-in: [ba4845b3] user: drh branch: trunk, size: 88200
2007-04-06
18:23
Additional coverage testing. (CVS 3823) file: [426b4c03] check-in: [26b2e1ae] user: drh branch: trunk, size: 88011
2007-04-02
18:06
Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804) file: [13c6f73a] check-in: [96b67881] user: drh branch: trunk, size: 88064
2007-04-01
23:49
Fix some warnings about unused and uninitialized variables. (CVS 3788) file: [ccb003fb] check-in: [18aec1dd] user: drh branch: trunk, size: 88106
18:46
Make unix builds threadsafe by default. (CVS 3787) file: [5e3cbef7] check-in: [ddfc3b2d] user: drh branch: trunk, size: 88154
2007-03-30
11:29
Move the sqlite3_temp_directory global variable out of the OS porting layer and into main.c so that it is more accessible to non-standard OS porting layers. (CVS 3759) file: [4291be23] check-in: [23653f7a] user: drh branch: trunk, size: 88129
2007-03-29
20:19
Assume any return code from fcntl() other than -1 is success. Formerly we only assumed that 0 was success. Ticket #2173. (CVS 3754) file: [fe0c0175] check-in: [8d0073c0] user: drh branch: trunk, size: 88386
18:19
Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make the new OS-layer interface routine for finding sector size optional. (CVS 3750) file: [5f7ee6c9] check-in: [0fb9af1d] user: drh branch: trunk, size: 88353
2007-03-27
16:19
Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729) file: [0d91b28d] check-in: [b24a6e7b] user: danielk1977 branch: trunk, size: 88344
2007-03-26
22:05
Modify sources to that they can be combined into a single sqlite3.c source file. Eliminate all type-pruned pointer warnings. (CVS 3722) file: [1f32d154] check-in: [0b832e21] user: drh branch: trunk, size: 88297
2007-03-23
10:08
Add a comment to the OsSectorSize() function. (CVS 3710) file: [4642f23e] check-in: [0fd9983a] user: danielk1977 branch: trunk, size: 88229
2007-03-22
15:22
In os_unix.c, make a distinction between pread() and pread64(). Add a new compile-time macro USE_PREAD64 to select the latter. (CVS 3709) file: [f6c26166] check-in: [177cd929] user: drh branch: trunk, size: 87783
2007-03-19
05:54
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) file: [33ee7c14] check-in: [5752d84d] user: danielk1977 branch: trunk, size: 87622
2007-03-15
01:16
Enhanced temp-file security under unix. There are no known attacks against prior versions - this check-in is just an added precaution. (CVS 3687) file: [a3b26ad8] check-in: [5af61402] user: drh branch: trunk, size: 87501
2007-02-27
02:01
Improvements to OS layer tracing on the unix backend. (CVS 3664) file: [abdb0f7b] check-in: [3ad96dbe] user: drh branch: trunk, size: 87484
2007-02-06
11:11
Check the return value of lseek() in os_unix.c to make sure it really worked. (CVS 3628) file: [2f7f7dbb] check-in: [e4408dd1] user: drh branch: trunk, size: 87573
2007-01-31
23:37
Fixed incorrect typecast for flock structure ptr in fcntl() call in sqlite3TestLockingStyle() Restored previous fullfsync behavior, try fsync() if fcntl(fd, F_FULLFSYNC, 0) returns an error. (CVS 3621) file: [09d42237] check-in: [f044c5f4] user: aswift branch: trunk, size: 87415
2007-01-03
23:36
Additional changes in the pager and os interface layers to fix problems that might be contributing to recently observed database corruption. (CVS 3549) file: [9fbbd8ab] check-in: [a593d574] user: drh branch: trunk, size: 86922
2006-12-21
01:29
Move the shared-library loading routines into the OS portability layer, thus enabling the os_win.c code to handle the character encoding confusion of win95/nt/ce. Ticket #2023. (CVS 3541) file: [d4bc8cbe] check-in: [a1bcc6de] user: drh branch: trunk, size: 86877
2006-11-11
01:31
The uninitialized file descriptor from the unixFile structure is passed to sqlite3DetectLockingStyle in allocateUnixFile rather than the file descriptor passed in. This was causing the locking detection on NFS file systems to behave somewhat randomly and the result was locks were not respected and data loss could occur. (CVS 3508) file: [d3b6b66b] check-in: [b9dd16ef] user: aswift branch: trunk, size: 86383
2006-11-06
21:20
Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) file: [f9a46b57] check-in: [6324ea81] user: drh branch: trunk, size: 86385
2006-10-11
17:19
Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473) file: [523b674d] check-in: [aa0b96c3] user: aswift branch: trunk, size: 86382
2006-10-03
17:40
Add the OS-X locking style patches to os_unix.c. Disabled by default. (CVS 3459) file: [a4fa8871] check-in: [f4103dea] user: drh branch: trunk, size: 86376
2006-09-15
07:28
Add support for extended result codes - additional result information carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) file: [3ed7fd16] check-in: [ba579ddc] user: drh branch: trunk, size: 60989
2006-09-14
13:47
Enhanced I/O error simulation. (CVS 3418) file: [4a99fca1] check-in: [86931854] user: drh branch: trunk, size: 61008
2006-04-19
01:24
Remove a superfluous call to access() in the unix driver. Error spotted by Coverity. (CVS 3175) file: [17d91581] check-in: [4f195aa1] user: drh branch: trunk, size: 60831
2006-03-23
22:42
Use the pread()/pwrite() interface on Posix if compiled with -DUSE_PREAD=1. Note that on Linux this is slower and does not work for large files. (CVS 3147) file: [35ad4d81] check-in: [5a24f619] user: drh branch: trunk, size: 60896
2006-02-14
10:48
Changes so that test_async.c works with memory management turned on. (CVS 3093) file: [757a7b72] check-in: [f4150c29] user: danielk1977 branch: trunk, size: 60002
2006-02-13
18:42
Disable the /./ and /../ collapser logic in sqlite3OsFullPathname under Unix. (CVS 3092) file: [365edd49] check-in: [111a426b] user: drh branch: trunk, size: 59819
17:03
Add in-process file locking to test_async.c. The unix implementation of sqlite3OsFullPathname() now attempts to remove /./ and /../ elements from the path. (CVS 3090) file: [7604ea2b] check-in: [42379c62] user: drh branch: trunk, size: 59802
2006-02-11
02:03
Fix typo in os_unix.c. (CVS 3082) file: [378a89aa] check-in: [c0e987bc] user: drh branch: trunk, size: 59253
01:25
Add support and documentation for the fullfsync pragma. Also include some other unrelated documentation updates. (CVS 3080) file: [88f3f422] check-in: [f2069d0b] user: drh branch: trunk, size: 59252
2006-02-10
13:11
More comments on the unix locking code. Ticket #1672. (CVS 3075) file: [bd42a513] check-in: [4b6f5688] user: drh branch: trunk, size: 58686
04:33
Fix deadlock problem in the unix mutex. Ticket #1672. (CVS 3071) file: [50e51ba8] check-in: [a6c30be2] user: drh branch: trunk, size: 57951
2006-02-09
23:05
Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS 3068) file: [dfd3b03a] check-in: [d54d3b82] user: drh branch: trunk, size: 56769
2006-01-31
23:03
Add the SQLITE_THREADS_OVERRIDE_LOCKS compile-time option that disables the run-time test to see if threads can override each others locks on unix. (CVS 3050) file: [9de18877] check-in: [e83a19e8] user: drh branch: trunk, size: 56501
2006-01-27
06:32
Fix a couple of (harmless) intel compiler warnings. (CVS 3034) file: [73c5e722] check-in: [2e23231f] user: danielk1977 branch: trunk, size: 56066
2006-01-23
16:24
Fix uninitialized variable in os_unix.c. (CVS 3006) file: [b25eca66] check-in: [892e644d] user: drh branch: trunk, size: 55949
2006-01-20
18:10
More compiler warnings fixed - or in some cases comments are added to explain that the compiler is wrong. (CVS 2984) file: [38a55e51] check-in: [507653a9] user: drh branch: trunk, size: 56022
2006-01-18
18:22
Include the ThreadData structure in internal malloc() testing. Also fixes for revealed bugs. (CVS 2974) file: [a242a945] check-in: [c7b9d50d] user: danielk1977 branch: trunk, size: 56025
17:25
Modify the sqlite3OsInMutex os-layer interface to take a single parameter to distinguish between mutexes held by the current thread and mutexes held by any thread. Part of the fix for ticket #1630. (CVS 2973) file: [9d44bcfb] check-in: [e1ad9df1] user: drh branch: trunk, size: 55817
16:51
Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972) file: [51fa18a2] check-in: [ac090f2a] user: danielk1977 branch: trunk, size: 55578
15:25
Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970) file: [fb7ae89d] check-in: [e0b022e5] user: danielk1977 branch: trunk, size: 55870
14:06
Convert the unix driver to use a recusive mutex. Similar changes to the windows driver are pending. (CVS 2968) file: [7c085f80] check-in: [8830bbba] user: drh branch: trunk, size: 55571
2006-01-17
16:10
Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965) file: [5f1ce55c] check-in: [9e2e4084] user: danielk1977 branch: trunk, size: 55114
2006-01-15
17:27
Clean up comments in os_unix.c. (CVS 2950) file: [7daa1720] check-in: [2170e803] user: drh branch: trunk, size: 55118
02:43
Closing a file from the wrong thread is harmless on most systems. (See ticket #1611) But on systems like RedHat9 with broken fcntl() locks, it leaks file descriptors. That is better than the alternative of prematurely breaking locks and causing database corruption. Nevertheless, it would be good if we could figure out a way to report errors when closing a file from the wrong thread. (CVS 2946) file: [7457d51c] check-in: [ad8f12ca] user: drh branch: trunk, size: 54651
02:30
Add tests and fix bugs in the new cross-thread lock resolution code. When an unlock fails, do not leak file descriptors (ticket #1611). But we really ought to report SQLITE_MISUSE or some other error instead of just returning SQLITE_OK. (CVS 2945) file: [a1245b11] check-in: [f68e05cb] user: drh branch: trunk, size: 54680
00:13
Documentation updates. Fix to date.c. But most importantly: database connections are now allowed to change threads as long as they are not holding a lock. (CVS 2944) file: [e6ff5035] check-in: [03c422ec] user: drh branch: trunk, size: 54384
2006-01-12
01:25
Improve performance by about 10% by avoiding excess calls to get the thread-specific data. (CVS 2921) file: [bc35a237] check-in: [a8c74feb] user: drh branch: trunk, size: 52821
2006-01-11
23:40
Testing of the automatic TSD deallocation logic. The sqlite3_thread_cleanup() API is documented. This should close ticket #1601. (CVS 2920) file: [d3ec9c61] check-in: [fb518b0c] user: drh branch: trunk, size: 52579
21:41
Automatically deallocate thread-specific data when it is no longer being used. Ticket #1601. Also implemented the suggestion of ticket #1603. Memory management is now off by default at compile-time. The sqlite3_enable_memory_management() API has been removed. (CVS 2919) file: [557a21c5] check-in: [5d9c6aa9] user: drh branch: trunk, size: 51890
2006-01-09
23:40
Added database server example code (untested). Fixed serveral bugs including the autovacuum compile problem described by ticket #1593. (CVS 2897) file: [8943febb] check-in: [ec332d88] user: drh branch: trunk, size: 51783
06:29
Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893) file: [c5d1a3fe] check-in: [82b81f69] user: danielk1977 branch: trunk, size: 52458
2006-01-07
04:06
Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880) file: [ba70f762] check-in: [77ac231c] user: drh branch: trunk, size: 52440
2006-01-06
21:52
Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878) file: [05223f84] check-in: [9d71b7de] user: drh branch: trunk, size: 52409
14:46
Fix an alignment problem in the sqlite3OsRandomSeed(). Ticket #1584. (CVS 2872) file: [1ade7cd8] check-in: [373b56f0] user: drh branch: trunk, size: 52409
14:32
Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) file: [d220bf37] check-in: [2529c2e1] user: drh branch: trunk, size: 52369
00:36
Windows implementation of the thread-specific data interface. (CVS 2864) file: [d99158f7] check-in: [3aa8befe] user: drh branch: trunk, size: 52358
2006-01-05
13:48
Disable automatic invocation of sqlite3_release_memory() when a malloc() fails in those cases where the global mutex is held. (CVS 2860) file: [d52d87a0] check-in: [6fdbb8b7] user: danielk1977 branch: trunk, size: 52446
2006-01-02
20:00
Add the xInMutex method to the os-layer switch for testing whether or not mutexes are used correctly. (CVS 2851) file: [e4fbf137] check-in: [a582b159] user: drh branch: trunk, size: 51803
2005-12-15
10:50
Move malloc(), free(), realloc() and allocationSize() into the Os vtbl. (CVS 2819) file: [6394d2fa] check-in: [81a41f66] user: danielk1977 branch: trunk, size: 51500
10:11
Add the sqlite3_os_routine_set()/get() functions. (CVS 2818) file: [df6e4972] check-in: [c1ed79f5] user: danielk1977 branch: trunk, size: 51383
2005-12-09
20:02
Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810) file: [f11eba69] check-in: [83a59151] user: drh branch: trunk, size: 49865
14:25
Many small changes to ensure memory is not leaked after malloc() fails. (CVS 2808) file: [01648f7f] check-in: [601c3354] user: danielk1977 branch: trunk, size: 49875
2005-12-06
12:52
Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800) file: [76189e4c] check-in: [e1606658] user: danielk1977 branch: trunk, size: 49796
2005-11-30
03:20
Restructure the OS interface yet again. This time make the OsFile object a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) file: [1a7278bf] check-in: [bd8740d1] user: drh branch: trunk, size: 49795
2005-11-29
19:56
The crash test works now, at least on unix. Untested on windows. But it never worked on windows before so if it still does not there is no big loss. I am still troubled by the current design of the OS overloading mechanism. Expect to see more changes. (CVS 2794) file: [471d3642] check-in: [fa1d7ecf] user: drh branch: trunk, size: 48835
03:13
Make the OsFile structure opaque with its internal structure known only to the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h include files. The crash tests are broken by this patch. (CVS 2791) file: [02b6a1c7] check-in: [058f3175] user: drh branch: trunk, size: 48842
2005-11-26
03:43
Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) file: [09f17497] check-in: [57a674fc] user: drh branch: trunk, size: 45543
00:25
Modify the OS layer so that I/O routines are called through a virtual function table. The os_test.c module has been replaced by test6.c. The crash tests are busted now and need to be fixed. (CVS 2785) file: [57f47fd9] check-in: [1f69aec2] user: drh branch: trunk, size: 45406
2005-11-25
10:38
Add the compilation option SQLITE_DISABLE_DIRSYNC (CVS 2782) file: [1c51efc1] check-in: [f1298bb1] user: danielk1977 branch: trunk, size: 44913
09:01
If SQLITE_DISABLE_LFS is defined, omit the bigfile tests. (CVS 2781) file: [4847182d] check-in: [f882a516] user: danielk1977 branch: trunk, size: 44812
08:47
Check the return code of full_fsync() when used to sync a directory fd. (CVS 2780) file: [0a75314c] check-in: [84aae3b0] user: danielk1977 branch: trunk, size: 44811
2005-11-24
23:14
The --enable-cross-thread-connect configuration option or the -DSQLITE_ALLOW_XTHREAD_CONNECT compile-time option permits database connections to be moved across threads. This will cause latch-ups and failures on some linux systems such as RedHat-9. Do not use these options if you want a portable build. (CVS 2778) file: [6878d8ae] check-in: [84aa4d58] user: drh branch: trunk, size: 44770
2005-10-20
07:28
Changes to prevent various compiler warnings. (CVS 2750) file: [2af2d2ce] check-in: [e261b8b0] user: drh branch: trunk, size: 44718
2005-10-05
10:29
Another attempt to get fdatasync to be ignored on non-conforming posix systems. Now a system has to opt-in for fdatasync instead of opt-out. Ticket #1467. (CVS 2741) file: [23d6c04d] check-in: [115340d4] user: drh branch: trunk, size: 44721
2005-09-22
15:45
Optionally call fdatasync() instead of fsync() only if _POSIX_SYNCHRONIZED_IO is positive, which should only be the case on operating systems that actually support fdatasync(). (CVS 2732) file: [407dd078] check-in: [a9b341dc] user: drh branch: trunk, size: 44656
2005-09-09
01:32
Defend against disk I/O errors that happen during an sqlite3OsSeek(). (CVS 2679) file: [c86cf43b] check-in: [461e3a0a] user: drh branch: trunk, size: 44518
2005-09-08
12:38
While doing a transaction comment, use fdatasync() instead of fsync() in cases there the file size is unchanged. (CVS 2673) file: [4838fab4] check-in: [3c555a87] user: drh branch: trunk, size: 44455
2005-09-06
21:40
Changes to reduce the amount of stack space required. (CVS 2661) file: [cbdac6b2] check-in: [b86bd70f] user: drh branch: trunk, size: 44194
2005-08-29
23:00
Increase resolution of time-of-day on unix. Add an experimental sqlite3_profile() API. (CVS 2639) file: [b4c45925] check-in: [ed2ca087] user: drh branch: trunk, size: 44123
2005-08-21
21:45
Clean up possible locking problem in multithreaded applications that take a malloc failure. (CVS 2611) file: [7fae44e2] check-in: [545e702a] user: drh branch: trunk, size: 43907
2005-08-13
17:17
Give the same access permissions to journal files as is given to databases. (CVS 2590) file: [535cd82c] check-in: [7961ec0c] user: drh branch: trunk, size: 43903
2005-06-15
17:47
Changes to the unix OS layer aimed at finding and fixing tickets #1272 and #1285. (CVS 2517) file: [be8f327f] check-in: [006dda31] user: drh branch: trunk, size: 43860
2005-06-07
22:22
Changes to support linking without a parser and without a disk I/O interface. (CVS 2504) file: [45540d7e] check-in: [62a7353d] user: drh branch: trunk, size: 41293
2005-06-06
15:06
Handle failures of getcwd() without segfaulting. Ticket #1274. (CVS 2490) file: [443ca9d1] check-in: [c1691004] user: drh branch: trunk, size: 41206
2005-05-17
11:25
Provide a compile-time parameter to set the default file creation permissions under Unix. Ticket #1247. (CVS 2461) file: [cb8a3990] check-in: [bfa55bec] user: drh branch: trunk, size: 41189
2005-03-18
14:03
Remove unused code from util.c. Enhance the trace output in os_unix.c. (CVS 2397) file: [fba01675] check-in: [f2f31919] user: drh branch: trunk, size: 41142
2005-03-11
17:52
Fix bugs discovered in 3.1.4. F_FULLFSYNC not F_FULLSYNC. And a bug in "make doc". Also typos in the documentation. (CVS 2379) file: [d4823c6b] check-in: [3c57a457] user: drh branch: trunk, size: 41112
2005-03-10
14:11
Disable F_FULLSYNC if the sychronous pragma is not set to FULL. (CVS 2372) file: [4fe368b6] check-in: [58b8733b] user: drh branch: trunk, size: 41109
2005-02-03
00:29
Make sure the rc variable in OsWrite of os_win.c is always initialized. Also assert that the amt parameter is always greater than zero. Ticket #1094. (CVS 2309) file: [68d3d329] check-in: [4b399ae7] user: drh branch: trunk, size: 40110
2005-01-21
17:53
Initialize the random number generator from /dev/urandom, if available. (CVS 2258) file: [1f17ceff] check-in: [aab8e7f8] user: drh branch: trunk, size: 40091
2005-01-19
23:24
Continued refactoring of the name resolution logic and query optimizer. (CVS 2236) file: [77319e31] check-in: [d8b2a7e0] user: drh branch: trunk, size: 39963
2005-01-08
15:44
Fixes to the temp_store_directory pragma. (CVS 2185) file: [08340c86] check-in: [0a90eaf3] user: drh branch: trunk, size: 39580
2004-12-20
19:01
Add PRAGMA 'temp_store_directory'. Added os_*.c function sqlite3OsIsDirWritable(), split pragma.c changeTempStorage() function into invalidateTempStorage(). (CVS 2171) file: [f3835451] check-in: [772e22cb] user: tpoindex branch: trunk, size: 39512
2004-10-06
15:41
Convert many constants to have type "const". (CVS 2006) file: [5824b22b] check-in: [d790c84c] user: drh branch: trunk, size: 39202
2004-10-02
20:38
Fixes to the OsUnlock() interface. Correctly leave a SHARED lock behind when requested. Honor the error code that OsUnlock() returns. Ticket #913 and #938. (CVS 1997) file: [5c1f3628] check-in: [c4697503] user: drh branch: trunk, size: 39196
2004-10-01
14:38
Additional code to test the SQLITE_FULL return when the disk is full. (CVS 1994) file: [ca7891d1] check-in: [44e56f0b] user: drh branch: trunk, size: 38908
03:02
Fully release exclusive locks in the Unlock primitive of Unix. Ticket #913. (CVS 1993) file: [8ee13cc8] check-in: [11a37a74] user: drh branch: trunk, size: 38883
02:00
Use type i64 instead of off_t for file offsets since off_t is giving portability problems. Ticket #924. (CVS 1992) file: [6a02c1bc] check-in: [8972c004] user: drh branch: trunk, size: 38729
2004-08-29
23:42
Change the name of the global variable to sqlite3_temp_directory to avoid a naming conflict with version 2.8. (CVS 1918) file: [a5625eed] check-in: [431f7436] user: drh branch: trunk, size: 38792
2004-08-14
17:10
Add the ability to specify a alternative temporary file directory using the "sqlite_temp_directory" global variable. (CVS 1885) file: [3239a45d] check-in: [fce56ba6] user: drh branch: trunk, size: 38790
2004-08-04
14:44
Separate P4 timing asm code out of the SQLITE_DEBUG macro so that SQLITE_DEBUG can be used on non-x86 machines and with compilers other than GCC. Ticket #838. (CVS 1876) file: [d084e344] check-in: [add266cc] user: drh branch: trunk, size: 38512
2004-07-20
14:06
Lemon collapses common destructors and reduce actions into a single case. (CVS 1837) file: [02a08065] check-in: [3c5aa850] user: drh branch: trunk, size: 38498
01:14
Report an error when attempting to open a directory as a database. Ticket #687. (CVS 1832) file: [ee607890] check-in: [4d77037b] user: drh branch: trunk, size: 38484
2004-07-19
22:08
The OsFile under Unix records a pointer back to the pager. This is intended to be used for an externalized locking patch. (CVS 1821) file: [4d5cb2f9] check-in: [511ee639] user: drh branch: trunk, size: 38402
2004-07-17
21:44
Use the F_FULLFSYNC fctrl if it is available. Record the name of files that are opened in the OsFile structure. (CVS 1799) file: [7dca8d07] check-in: [1d30d0dd] user: drh branch: trunk, size: 38423
2004-06-29
11:08
Comment out unused routine in os_unix.c. (CVS 1759) file: [7df6ae05] check-in: [20db8124] user: drh branch: trunk, size: 38072
07:45
Bug-fixes to get the two threadtest C programs working again. (CVS 1756) file: [8acbb719] check-in: [ffd3312b] user: danielk1977 branch: trunk, size: 38029
03:29
Try to get threads working again on Linux. (CVS 1755) file: [2d787fd9] check-in: [a8417cb8] user: drh branch: trunk, size: 37377
2004-06-28
08:25
Add a simple test case for inter-process locking. (CVS 1752) file: [295d0d4f] check-in: [b0fcc99d] user: danielk1977 branch: trunk, size: 34329
2004-06-25
08:32
A few more comment changes. No code alterations. (CVS 1689) file: [bd62e20d] check-in: [b68b4a42] user: danielk1977 branch: trunk, size: 34297
07:21
Add a comment on the implementation of sqlite3OsLock(). No code changes. (CVS 1688) file: [63608cd3] check-in: [084f3fff] user: danielk1977 branch: trunk, size: 34396
2004-06-22
11:29
Add os_test.c. Not activated yet. (CVS 1655) file: [39e73ed0] check-in: [d16b8638] user: danielk1977 branch: trunk, size: 32188
2004-06-21
18:14
Fix an uninitialized variable. The variable was harmless, but pedantic error checking in MSVC raised an exception on it. (CVS 1651) file: [3d3553d7] check-in: [afc398c2] user: drh branch: trunk, size: 32188
2004-06-18
17:10
Changes to allow libsqlite3.a and libsqlite.a to be both linked into the same program at the same time. (CVS 1621) file: [47176c8e] check-in: [2590fffc] user: drh branch: trunk, size: 31783
06:02
Fix a couple of gcc warnings. (CVS 1615) file: [add5af1c] check-in: [960f55f3] user: danielk1977 branch: trunk, size: 31776
2004-06-17
19:04
Documentation updates in preparation for the release of version 3.0.0. (CVS 1613) file: [132864ff] check-in: [9fb29f73] user: drh branch: trunk, size: 31897
2004-06-15
11:40
Minor bugfixes and test case adjustments for version 2 test cases to work with version 3. (CVS 1598) file: [8832c78d] check-in: [e21a1813] user: danielk1977 branch: trunk, size: 31799
00:29
Add the sqlite3OsFileModTime() interface. But it is still unused. The change counter in page 1 is always incremented. (CVS 1594) file: [7eac2e84] check-in: [186c6f93] user: drh branch: trunk, size: 31719
2004-06-14
09:35
Ensure master journal file is deleted when a transaction is committed. (CVS 1586) file: [558006f8] check-in: [cb3cbe00] user: danielk1977 branch: trunk, size: 31252
2004-06-12
02:17
Bug fix in the unix locking code. (CVS 1574) file: [7ece785e] check-in: [dcad244f] user: drh branch: trunk, size: 30918
2004-06-09
17:37
Fixes to the file locking. 109 tests are now failing. (CVS 1548) file: [1d6f3d1a] check-in: [dc076345] user: drh branch: trunk, size: 30610
2004-06-08
00:47
Do not require a RESERVED lock when transitioning from SHARED to EXCLUSIVE. (CVS 1542) file: [3747274f] check-in: [4dfdea73] user: drh branch: trunk, size: 30217
2004-06-07
16:27
More work on windows locking. Fix some problems with unix locking. There is still an assertion failure on windows locking in attach2.test. (CVS 1539) file: [f78604d0] check-in: [0c2d169c] user: drh branch: trunk, size: 30526
2004-06-04
10:38
Defer the exclusive db lock until the pager cache is flushed to disk. 41 tests now fail. (CVS 1528) file: [a4feb70b] check-in: [d2f69e5e] user: danielk1977 branch: trunk, size: 28985
2004-06-03
16:08
Untested updates to support atomic multi-file transactions (CVS 1526) file: [3175540f] check-in: [d57e5252] user: danielk1977 branch: trunk, size: 29827
2004-06-02
06:30
Fix a segfault in sqlite3OsLock() (CVS 1525) file: [36682ee5] check-in: [51348b82] user: danielk1977 branch: trunk, size: 28963
2004-06-01
14:09
Unix version of sqlite3OsLock(). (CVS 1520) file: [3dc2868d] check-in: [023d1760] user: danielk1977 branch: trunk, size: 29002
2004-05-22
21:30
Remove the OP_SetInsert opcode. (CVS 1443) file: [585665ec] check-in: [18e690e4] user: drh branch: trunk, size: 26597
17:41
Split up os.c into separate files, one for each platform. (CVS 1441) file: [e93a6858] check-in: [5c61be1c] user: drh branch: trunk, size: 26563 Added