]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoFix some errors when compiling with SQLITE_OMIT_WAL.
dan [Mon, 28 Jun 2010 11:23:09 +0000 (11:23 +0000)] 
Fix some errors when compiling with SQLITE_OMIT_WAL.

FossilOrigin-Name: 3b68cb9c656db8c5c481199919a98f5764f7ebfa

15 years agoRemove debugging code from test script.
dan [Mon, 28 Jun 2010 11:06:53 +0000 (11:06 +0000)] 
Remove debugging code from test script.

FossilOrigin-Name: a85ae33246226801f88c1e377725c192711797cc

15 years agoCurrently, if SQLite cannot find a table or index referred to by a query, it reloads...
dan [Mon, 28 Jun 2010 10:15:19 +0000 (10:15 +0000)] 
Currently, if SQLite cannot find a table or index referred to by a query, it reloads the database schema from disk to see if the table or index has been added since the schema was cached in memory. Extend this behaviour to columns (which may have been added using ALTER TABLE) and fix some obscure cases related to tables and indexes (INDEXED BY, DROP TABLE etc.).

FossilOrigin-Name: 4932f22848b3d15a2b6dc5fa2cd69ce19182e2a4

15 years agoMake walIndexTryHdr() a private function. Fix an issue with SQLITE_MUTEX_NOOP.
drh [Sat, 26 Jun 2010 22:16:02 +0000 (22:16 +0000)] 
Make walIndexTryHdr() a private function.  Fix an issue with SQLITE_MUTEX_NOOP.

FossilOrigin-Name: ec65bbd06bdd3bf16a742c5bb1fab0dce756c01a

15 years agoSuppress various compiler warnings.
drh [Sat, 26 Jun 2010 21:34:06 +0000 (21:34 +0000)] 
Suppress various compiler warnings.

FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd

15 years agoFix two asserts on the scratch allocator to allow for up to two outstanding
drh [Sat, 26 Jun 2010 20:25:30 +0000 (20:25 +0000)] 
Fix two asserts on the scratch allocator to allow for up to two outstanding
scratch allocations per thread.

FossilOrigin-Name: f149b498b6ada3fc9f71ee104c351554c80c7f8a

15 years agoSuppress a couple uninitialized variable warnings.
drh [Sat, 26 Jun 2010 20:00:54 +0000 (20:00 +0000)] 
Suppress a couple uninitialized variable warnings.

FossilOrigin-Name: 29571e228cc85f7768c3ad57d0c7af96b5a54983

15 years agoAdd test file tkt-d11f09d36e.test.
dan [Sat, 26 Jun 2010 19:03:30 +0000 (19:03 +0000)] 
Add test file tkt-d11f09d36e.test.

FossilOrigin-Name: 6e469b63fab3cd63b23110aaceccfed0587c6a87

15 years agoRemove a NEVER() in pager that can in fact be reached in obscure failure
drh [Sat, 26 Jun 2010 19:02:33 +0000 (19:02 +0000)] 
Remove a NEVER() in pager that can in fact be reached in obscure failure
cases.

FossilOrigin-Name: 42b8bd1c70d8dbbc4a59e2fdee8654c4fe84f979

15 years agoFix a case where the doNotSyncSpill flag may remain permanently set following aIO...
dan [Sat, 26 Jun 2010 17:15:07 +0000 (17:15 +0000)] 
Fix a case where the doNotSyncSpill flag may remain permanently set following aIO error.

FossilOrigin-Name: 56c7d111bf7013be95a4c2a657a4861eee91db91

15 years agoWhen synchronous=NORMAL, use the same journal file format as with synchronous=FULL...
dan [Sat, 26 Jun 2010 15:42:33 +0000 (15:42 +0000)] 
When synchronous=NORMAL, use the same journal file format as with synchronous=FULL (i.e. multiple journal headers within the one journal). Fix for [d11f09d36e].

FossilOrigin-Name: 2eaf5ee0d9338de8a77fb3e06ad2f2b0daa6fcbe

15 years agoFurther test cases for pager1.test and pagerfault.test.
dan [Fri, 25 Jun 2010 19:09:48 +0000 (19:09 +0000)] 
Further test cases for pager1.test and pagerfault.test.

FossilOrigin-Name: bfd563c4714d86805fa09ce9f4f807e5d502a99b

15 years agoReduce the average (but not maximum) size of the allocations made as part of a checkp...
dan [Fri, 25 Jun 2010 16:34:32 +0000 (16:34 +0000)] 
Reduce the average (but not maximum) size of the allocations made as part of a checkpoint.

FossilOrigin-Name: 4a7fd91b7ab2c5d21fbac7f6f123820c8f4ec7f6

15 years agoReduce the size of the large allocation (approx 8KB for every 4000 frames in the...
dan [Fri, 25 Jun 2010 15:16:25 +0000 (15:16 +0000)] 
Reduce the size of the large allocation (approx 8KB for every 4000 frames in the log) that occurs during checkpoint. Use the 'scratch' memory for this allocation instead of the general purpose allocation.

FossilOrigin-Name: 29887487ed549f97c3c9b37f852bae179b6ea9a9

15 years agoFix up a branch in sqlite3ValueFromExpr() so that we can achieve full
drh [Fri, 25 Jun 2010 14:17:58 +0000 (14:17 +0000)] 
Fix up a branch in sqlite3ValueFromExpr() so that we can achieve full
branch test coverage regardless of whether or not SQLITE_ENABLE_STAT2 is
used.

FossilOrigin-Name: af471ed79f539ff495f6d4cb3b69188c8af7ae3d

15 years agoChange the name of the shared-memory file on windows from *-wal-index to
drh [Fri, 25 Jun 2010 12:52:47 +0000 (12:52 +0000)] 
Change the name of the shared-memory file on windows from *-wal-index to
*-shm, for consistency with unix.

FossilOrigin-Name: 5995cb15080cfb707ddda501f975673f658106f7

15 years agoModify the merge-sort in wal.c so that it does not use recursion.
dan [Fri, 25 Jun 2010 11:35:52 +0000 (11:35 +0000)] 
Modify the merge-sort in wal.c so that it does not use recursion.

FossilOrigin-Name: daea6c054cee3564d8460d876b78a325ebc382dd

15 years agoAdd test cases to pager1.test and pagerfault.test.
dan [Thu, 24 Jun 2010 19:16:06 +0000 (19:16 +0000)] 
Add test cases to pager1.test and pagerfault.test.

FossilOrigin-Name: 4941e437d2638f36ac8510d4a5b4c780afc798bb

15 years agoRevert to allowing a cache spill during writes of multiple pages within a
drh [Thu, 24 Jun 2010 18:36:33 +0000 (18:36 +0000)] 
Revert to allowing a cache spill during writes of multiple pages within a
single sector as long as the spill does not require a journal sync and a
new journal header.

FossilOrigin-Name: 7d83fbae9802a56b2121d0775de54fccd743d971

15 years agoModify ctime.test to work with SQLITE_THREADSAFE=2.
dan [Thu, 24 Jun 2010 17:37:57 +0000 (17:37 +0000)] 
Modify ctime.test to work with SQLITE_THREADSAFE=2.

FossilOrigin-Name: c6db3b303182202a8b03512e448607bce71de914

15 years agoDisable memory-pressure induced cache spill during savepoint rollback.
drh [Thu, 24 Jun 2010 14:52:25 +0000 (14:52 +0000)] 
Disable memory-pressure induced cache spill during savepoint rollback.

FossilOrigin-Name: a55eb4c3e9fa4ea43b8f8182eb9e39138df03f52

15 years agoAdd a coverage test to pagerfault.test.
dan [Thu, 24 Jun 2010 13:24:26 +0000 (13:24 +0000)] 
Add a coverage test to pagerfault.test.

FossilOrigin-Name: b58db67e972b5660e62a9b7daa2c1e87c3cf0a68

15 years agoAdd coverage tests. Remove a NEVER macro from pager.c, as the condition can now be...
dan [Thu, 24 Jun 2010 10:50:17 +0000 (10:50 +0000)] 
Add coverage tests. Remove a NEVER macro from pager.c, as the condition can now be true in wal mode.

FossilOrigin-Name: 7aac9ad6dd14b1c56eb8e4750ac769c6197c30bd

15 years agoMake sure the wal-index reader detects an incorrect version number even if
drh [Thu, 24 Jun 2010 02:46:48 +0000 (02:46 +0000)] 
Make sure the wal-index reader detects an incorrect version number even if
it had to hold a lock in order to read the wal-index.  Also, expand and enhance
various comments in wal.c.

FossilOrigin-Name: 2e6a462cebc05bfd4648d26dd5ae70b68844aa5f

15 years agoFix and/or improve comments in wal.c. No code changes.
drh [Wed, 23 Jun 2010 22:00:35 +0000 (22:00 +0000)] 
Fix and/or improve comments in wal.c.  No code changes.

FossilOrigin-Name: ee9991be082202c6637adb47affc777e7917be04

15 years agoAdd test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in...
dan [Wed, 23 Jun 2010 19:27:36 +0000 (19:27 +0000)] 
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits.

FossilOrigin-Name: 3e9680c4c18140d083b24e05a21ea6792aef2487

15 years agoInclude the SOURCE_ID value in the log messages output for corruption, misuse,
drh [Wed, 23 Jun 2010 17:59:51 +0000 (17:59 +0000)] 
Include the SOURCE_ID value in the log messages output for corruption, misuse,
and CANTOPEN errors.

FossilOrigin-Name: 1727a81fed65bebfea43e0bda271584096d82785

15 years agoAdjust the shared-memory locking range to account for the new version number
drh [Wed, 23 Jun 2010 17:58:38 +0000 (17:58 +0000)] 
Adjust the shared-memory locking range to account for the new version number
values in the wal-index header.

FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf

15 years agoAdd a version number to the wal-index header. If SQLite encounters a version number...
dan [Wed, 23 Jun 2010 15:55:43 +0000 (15:55 +0000)] 
Add a version number to the wal-index header. If SQLite encounters a version number in either the wal or wal-index files that it does not understand, the operation is abandoned and SQLITE_CANTOPEN returned.

FossilOrigin-Name: 8d0f8a7f70d6fb42369411a934b30f8c8ca8322f

15 years agoFix the xCurrentTimeInt64 interface on windows. It was off by a factor of 10.
drh [Wed, 23 Jun 2010 15:18:11 +0000 (15:18 +0000)] 
Fix the xCurrentTimeInt64 interface on windows.  It was off by a factor of 10.

FossilOrigin-Name: 51ef43b9f7db8fabf73d9c8a76dae6c275e50d58

15 years agoSimplifications to the pager_delmaster() implementation.
drh [Wed, 23 Jun 2010 15:04:27 +0000 (15:04 +0000)] 
Simplifications to the pager_delmaster() implementation.

FossilOrigin-Name: 8bfbdec647d29f0eb103ba7deb9116c44193f2e1

15 years agoDisable code used only by the codec when the codec is not deployed.
drh [Tue, 22 Jun 2010 21:15:49 +0000 (21:15 +0000)] 
Disable code used only by the codec when the codec is not deployed.

FossilOrigin-Name: 2c90276e340aa19d78d2e33c9f759f8eda0b82a3

15 years agoAdd codec support to wal mode.
dan [Tue, 22 Jun 2010 15:18:44 +0000 (15:18 +0000)] 
Add codec support to wal mode.

FossilOrigin-Name: 393741eba353d5d242b8e3c96db3ea2b92228036

15 years agoWhen trying to transition from journal_mode MEMORY to WAL, use OFF as an
drh [Tue, 22 Jun 2010 14:49:39 +0000 (14:49 +0000)] 
When trying to transition from journal_mode MEMORY to WAL, use OFF as an
intermediate journal mode.

FossilOrigin-Name: 4775b8f9a9d9b66fcd5abf3af111fcad249e662e

15 years agoSome changes to test scripts related to codec enabled versions of sqlite.
dan [Tue, 22 Jun 2010 13:46:43 +0000 (13:46 +0000)] 
Some changes to test scripts related to codec enabled versions of sqlite.

FossilOrigin-Name: 85dd51a75c75b2a123744f646e04538e4e5d89b3

15 years agoi
dan [Tue, 22 Jun 2010 11:10:40 +0000 (11:10 +0000)] 
i
Fix problem with handling of -vfs option in tcl interface.

FossilOrigin-Name: 8f98e8b5a557db5759747f3aae5ea01fb0d1f455

15 years agoMinor tweaks to get the pager working for corner cases when the
drh [Mon, 21 Jun 2010 21:45:37 +0000 (21:45 +0000)] 
Minor tweaks to get the pager working for corner cases when the
SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN flag is set.

FossilOrigin-Name: 82b38fca1aea345ade954517661145f1859e701c

15 years agoFix comment inside the pager_unlock() routine. Always close the master
drh [Mon, 21 Jun 2010 20:19:25 +0000 (20:19 +0000)] 
Fix comment inside the pager_unlock() routine.  Always close the master
journal file before trying to delete it.

FossilOrigin-Name: f820b815c9bff368eb1ccb850966a812151e610e

15 years agoAdd test cases to pager1.test and pager2.test.
dan [Mon, 21 Jun 2010 18:29:40 +0000 (18:29 +0000)] 
Add test cases to pager1.test and pager2.test.

FossilOrigin-Name: cc9ddae6d72b214f52b8949e644b91f4ab340a28

15 years agoMerge the experimental UNDELETABLE_WHEN_OPEN optimization into the trunk.
drh [Mon, 21 Jun 2010 12:47:41 +0000 (12:47 +0000)] 
Merge the experimental UNDELETABLE_WHEN_OPEN optimization into the trunk.

FossilOrigin-Name: ee0acef1faffd480fd2136f81fb2b6f6a17b5388

15 years agoChange things so that journal2.test works with ENABLE_ATOMIC_WRITE.
dan [Mon, 21 Jun 2010 12:34:29 +0000 (12:34 +0000)] 
Change things so that journal2.test works with ENABLE_ATOMIC_WRITE.

FossilOrigin-Name: a64d96db09ef2b7651fa4e98d3c7bf3ae5d3fe96

15 years agoAdd further pager tests.
dan [Mon, 21 Jun 2010 07:45:47 +0000 (07:45 +0000)] 
Add further pager tests.

FossilOrigin-Name: 4104b175a8c3560a7680f3d2b54416821bb2e19d

15 years agoMerge latest trunk change.
dan [Mon, 21 Jun 2010 06:00:15 +0000 (06:00 +0000)] 
Merge latest trunk change.

FossilOrigin-Name: f6d26e07b70965e332b1589804ca938593a5f432

15 years agoFix jrnlmode2.test so that it works on systems where UNDELETABLE_WHEN_OPEN is defined.
dan [Mon, 21 Jun 2010 05:40:49 +0000 (05:40 +0000)] 
Fix jrnlmode2.test so that it works on systems where UNDELETABLE_WHEN_OPEN is defined.

FossilOrigin-Name: 59be370e52ec814c45efa6cbac45b6df94661b54

15 years agoFix an uninitialized variable in os_unix.c.
drh [Sat, 19 Jun 2010 23:53:11 +0000 (23:53 +0000)] 
Fix an uninitialized variable in os_unix.c.

FossilOrigin-Name: 822a0283c6bc1c75001f3d1c528a4ff89c6b039c

15 years agoFix an assert() failure that could occur if compiling with OMIT_SHARED_CACHE.
dan [Sat, 19 Jun 2010 19:06:33 +0000 (19:06 +0000)] 
Fix an assert() failure that could occur if compiling with OMIT_SHARED_CACHE.

FossilOrigin-Name: 3e76a9f2c041a6d36614f540bb89588703d85925

15 years agoChange the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDevice...
dan [Sat, 19 Jun 2010 18:12:02 +0000 (18:12 +0000)] 
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag.

FossilOrigin-Name: 5a5ff4e3e4c707464f227907d0aefb8ef42180dd

15 years agoAdd tests to pager1.test and pagerfault.test.
dan [Sat, 19 Jun 2010 17:26:37 +0000 (17:26 +0000)] 
Add tests to pager1.test and pagerfault.test.

FossilOrigin-Name: f5df83fd875073eee8e2269e87e2a8c9c7abc981

15 years agoChange the unix VFS to always allocate shared-memory using a file in the
drh [Sat, 19 Jun 2010 15:10:09 +0000 (15:10 +0000)] 
Change the unix VFS to always allocate shared-memory using a file in the
same directory as the database.  Otherwise, a chroot might cause different
processes to use different shared memory files resulting in database
corruption.

FossilOrigin-Name: 2241788bc85fbc48e9cfecb95fe0a858338e37cb

15 years agoAdd tests to pager1.test and pagerfault.test.
dan [Sat, 19 Jun 2010 11:30:41 +0000 (11:30 +0000)] 
Add tests to pager1.test and pagerfault.test.

FossilOrigin-Name: 58c0b5bfed8c67cc3f2f4a6784d08c14e652c265

15 years agoAdd tests to pager1.test.
dan [Fri, 18 Jun 2010 18:59:49 +0000 (18:59 +0000)] 
Add tests to pager1.test.

FossilOrigin-Name: 582fca89195af54e9668af249691654cfea63d04

15 years agoRearrange some code in OP_JournalMode to avoid incorrect returns from subsequent...
dan [Fri, 18 Jun 2010 16:13:45 +0000 (16:13 +0000)] 
Rearrange some code in OP_JournalMode to avoid incorrect returns from subsequent invocations of "PRAGMA journal_mode" following an IO error.

FossilOrigin-Name: ce0a4a9b5f981d066822a9ae63740c91b35bfc60

15 years agoChange the implementation of the unix implementation of xAccess() so that it returns...
dan [Fri, 18 Jun 2010 11:10:06 +0000 (11:10 +0000)] 
Change the implementation of the unix implementation of xAccess() so that it returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size.

FossilOrigin-Name: 077b0e5bcd849130c8df373fc2134c4b44351882

15 years agoApply [b9b11855e8] (the alternate fix to [fc62af4523]) to the trunk.
dan [Thu, 17 Jun 2010 17:05:53 +0000 (17:05 +0000)] 
Apply [b9b11855e8] (the alternate fix to [fc62af4523]) to the trunk.

FossilOrigin-Name: 9a949a3a5c32b8bfbb94e10e18d050ec80a25553

15 years agoMerge trunk change [7c3a86b9c7].
dan [Thu, 17 Jun 2010 16:44:52 +0000 (16:44 +0000)] 
Merge trunk change [7c3a86b9c7].

FossilOrigin-Name: bd7bc4e0e28bc749034ff1a9290a69330c5d8ca4

15 years agoA different fix to [fc62af4523]. When changing from journal_mode=PERSIST or TRINCATE...
dan [Thu, 17 Jun 2010 16:44:21 +0000 (16:44 +0000)] 
A different fix to [fc62af4523]. When changing from journal_mode=PERSIST or TRINCATE to some other rollback mode, delete the journal file only if a RESERVED lock can be obtained on the database file first.

FossilOrigin-Name: b9b11855e8a9522309dd30e5256bb67d67e1353a

15 years agoFix the tkt-fc62af4523.test to work around non-randomness of the
drh [Thu, 17 Jun 2010 16:08:53 +0000 (16:08 +0000)] 
Fix the tkt-fc62af4523.test to work around non-randomness of the
randomblob() function when in testing mode.

FossilOrigin-Name: 7c3a86b9c7e2a35ce755c32b38e911e79d843fad

15 years agoFix bug in journal2.test.
dan [Thu, 17 Jun 2010 11:36:28 +0000 (11:36 +0000)] 
Fix bug in journal2.test.

FossilOrigin-Name: c1e04f1d4e8575ebc41b5b4403dbfe3f60d578dc

15 years agoMerge trunk updates with experimental branch.
dan [Thu, 17 Jun 2010 10:52:07 +0000 (10:52 +0000)] 
Merge trunk updates with experimental branch.

FossilOrigin-Name: 9f6ea1de5abab0ca28688e257ddf03c66413cf6e

15 years agoDo not delete the journal file in "PRAGMA journal_mode" commands. This fixes [fc62af4...
dan [Thu, 17 Jun 2010 10:42:06 +0000 (10:42 +0000)] 
Do not delete the journal file in "PRAGMA journal_mode" commands. This fixes [fc62af4523].

FossilOrigin-Name: 1ec74591a93e8b27ad3ac739914a48a91972e82c

15 years agoAdd test case for [fc62af4523].
dan [Thu, 17 Jun 2010 10:24:27 +0000 (10:24 +0000)] 
Add test case for [fc62af4523].

FossilOrigin-Name: cccd32c692057beb08a994102c6a10126ddeb937

15 years agoMerge fix [f80c3f922a] with experimental changes.
dan [Thu, 17 Jun 2010 06:19:53 +0000 (06:19 +0000)] 
Merge fix [f80c3f922a] with experimental changes.

FossilOrigin-Name: 20133e9ca98f5e6c42051ed3d65e4eb71d5366a5

15 years agoBug fix: Only trust the database size number at offset 28 if the change
drh [Thu, 17 Jun 2010 02:13:39 +0000 (02:13 +0000)] 
Bug fix:  Only trust the database size number at offset 28 if the change
counter at offset 24 matches the version number counter at offset 92.
This prevents corruption in the case of two applications writing to the
database where one is an older version of SQLite and the other is a newer
version.

FossilOrigin-Name: f80c3f922a114e738613955a939db46cf0847038

15 years agoExperimental change: On systems where it is not possible to unlink a file while one...
dan [Wed, 16 Jun 2010 19:04:23 +0000 (19:04 +0000)] 
Experimental change: On systems where it is not possible to unlink a file while one or more processes has it open (i.e. not unix), avoid closing the journal file each time the database is unlocked and reopening it at the start of each transaction.

FossilOrigin-Name: bede8c8a148fb9be5ffbf38df7fa733e35cc68c3

15 years agoAdd extra test cases to pager1.test.
dan [Wed, 16 Jun 2010 12:30:10 +0000 (12:30 +0000)] 
Add extra test cases to pager1.test.

FossilOrigin-Name: ad3209572d0e6afe5c8b52313e334509661045e2

15 years agoFix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnloc...
dan [Wed, 16 Jun 2010 10:55:42 +0000 (10:55 +0000)] 
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method.

FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01

15 years agoRationalize a common pattern in tcl test cases into proc do_multiclient_test.
dan [Tue, 15 Jun 2010 19:07:42 +0000 (19:07 +0000)] 
Rationalize a common pattern in tcl test cases into proc do_multiclient_test.

FossilOrigin-Name: efe44564983f115017658dd8a130226366d42bab

15 years agoFix a problem introduced into lock2.test by the previous commit.
dan [Tue, 15 Jun 2010 18:00:06 +0000 (18:00 +0000)] 
Fix a problem introduced into lock2.test by the previous commit.

FossilOrigin-Name: c1c9f6fa9d75df740e577dbc5e6a24b91ad2bdd0

15 years agoAdd test file pager1.test, containing tests of inter-process locking in non-wal mode.
dan [Tue, 15 Jun 2010 17:44:47 +0000 (17:44 +0000)] 
Add test file pager1.test, containing tests of inter-process locking in non-wal mode.

FossilOrigin-Name: 6e43eed9310bae9ca5e91f8fd9eafc45a16b7019

15 years agoRun extra iterations in wal3.test to ensure test coverage.
dan [Tue, 15 Jun 2010 14:21:17 +0000 (14:21 +0000)] 
Run extra iterations in wal3.test to ensure test coverage.

FossilOrigin-Name: ea80cbe51e33d6a3f15a4ad56f360fc5323866de

15 years agoMerge in [2c5e48a485].
dan [Tue, 15 Jun 2010 14:06:06 +0000 (14:06 +0000)] 
Merge in [2c5e48a485].
Merge in [2c5e48a485].
Merge in [2c5e48a485].

FossilOrigin-Name: 03c0f4fd9cbb655477b63ebbb6af7822715644aa

15 years agoMinor tweaks to the interface documentation - adding hyperlinks.
drh [Tue, 15 Jun 2010 12:09:06 +0000 (12:09 +0000)] 
Minor tweaks to the interface documentation - adding hyperlinks.

FossilOrigin-Name: 07b2fdd1cebbdbde5098a662eea65a0c9e8b5442

15 years agoUpdates to comments and testcase() macros in wal.c.
drh [Tue, 15 Jun 2010 11:21:54 +0000 (11:21 +0000)] 
Updates to comments and testcase() macros in wal.c.

FossilOrigin-Name: 4d90cc0bc07e791b2838fc384866bd5c2282f681

15 years agoChanges to the way tcl test scripts work. No changes to production code.
dan [Tue, 15 Jun 2010 06:56:37 +0000 (06:56 +0000)] 
Changes to the way tcl test scripts work. No changes to production code.

FossilOrigin-Name: 2c5e48a4855e2ec4572697c8fcfe4433e302ef33

15 years agoFix an error in the walfault.test script introduced by the previous check-in.
drh [Mon, 14 Jun 2010 18:06:20 +0000 (18:06 +0000)] 
Fix an error in the walfault.test script introduced by the previous check-in.

FossilOrigin-Name: a2b9374fc6f0aba2d465d432e1124bd957aab548

15 years agoMove the xShmMap method to in between xShmLock and xShmBarrier, since it seems
drh [Mon, 14 Jun 2010 18:01:46 +0000 (18:01 +0000)] 
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems
to fit in there logically.

FossilOrigin-Name: 58dfd83d8b7905391e2a06bb918ffa209c6de6b5

15 years agoMerge the experimental shared-memory mmap-by-chunk changes into the trunk.
drh [Mon, 14 Jun 2010 17:09:53 +0000 (17:09 +0000)] 
Merge the experimental shared-memory mmap-by-chunk changes into the trunk.

FossilOrigin-Name: f295e7ed5f04f6b8bffdaff8b565be3836ce4e80

15 years agoAdd the new xShmMap (formerly xShmPage) to os_win.c.
dan [Mon, 14 Jun 2010 16:16:33 +0000 (16:16 +0000)] 
Add the new xShmMap (formerly xShmPage) to os_win.c.

FossilOrigin-Name: 13e7a8242206bca4b5bf356ef074e66474d39609

15 years agoRemove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPa...
dan [Mon, 14 Jun 2010 14:07:50 +0000 (14:07 +0000)] 
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.

FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc

15 years agoUpdate some comments in wal.c. No code changes.
dan [Mon, 14 Jun 2010 11:49:26 +0000 (11:49 +0000)] 
Update some comments in wal.c. No code changes.

FossilOrigin-Name: 1ce9c92bffa5d7f8431c005b29d698b0f5b95875

15 years agoChange the interface to internal function walGetHash() to make it easier to follow.
dan [Mon, 14 Jun 2010 11:18:50 +0000 (11:18 +0000)] 
Change the interface to internal function walGetHash() to make it easier to follow.

FossilOrigin-Name: 5e8e2e978ea48ce4ad93a936c838934f33d665df

15 years agoAdd the xShmPage method to the "crash" vfs in test6.c.
dan [Mon, 14 Jun 2010 10:30:12 +0000 (10:30 +0000)] 
Add the xShmPage method to the "crash" vfs in test6.c.

FossilOrigin-Name: 1008f536440840da7d56c01ec147a25295fd1fd4

15 years agoAdd some fault-injection tests to improve coverage.
dan [Mon, 14 Jun 2010 07:53:26 +0000 (07:53 +0000)] 
Add some fault-injection tests to improve coverage.

FossilOrigin-Name: 37b26d125f4b1d8e75bb38800fefd145611f94aa

15 years agoFix some problems with handling IO errors on the experimental branch.
dan [Sat, 12 Jun 2010 12:02:35 +0000 (12:02 +0000)] 
Fix some problems with handling IO errors on the experimental branch.

FossilOrigin-Name: eade8bc238df580412f5cf1b91a91532ae671e46

15 years agoExperimental change to the xShmXXX parts of the VFS interface.
dan [Fri, 11 Jun 2010 19:04:21 +0000 (19:04 +0000)] 
Experimental change to the xShmXXX parts of the VFS interface.

FossilOrigin-Name: ca68472db01c14a899892007d1cbaff5e86ae193

15 years agoRefactor and simplify the logic used to change journalmode.
drh [Fri, 11 Jun 2010 17:01:24 +0000 (17:01 +0000)] 
Refactor and simplify the logic used to change journalmode.

FossilOrigin-Name: 95cc3f6fdec5494560c3cd4439d06870d1c62506

15 years agoAdding original art for the new SQLite logo.
drh [Thu, 10 Jun 2010 16:25:55 +0000 (16:25 +0000)] 
Adding original art for the new SQLite logo.

FossilOrigin-Name: af353bd89e5ec89f113d217225cc59cbc8373d64

15 years agoAdd the SQLITE_TESTCTRL_PGHDRSZ verb for sqlite3_test_control() used to get
drh [Thu, 10 Jun 2010 14:07:40 +0000 (14:07 +0000)] 
Add the SQLITE_TESTCTRL_PGHDRSZ verb for sqlite3_test_control() used to get
the size of pcache headers for testing purposes.

FossilOrigin-Name: 5d694f04fecf47ca325e108d463c24f42def55d5

15 years agoUpdate the test VFS in test_journal.c so that it implements the
drh [Thu, 10 Jun 2010 10:51:27 +0000 (10:51 +0000)] 
Update the test VFS in test_journal.c so that it implements the
xCurrentTimeInt64 method.

FossilOrigin-Name: ec3b4a7e5d3d7bd737d356b8a09ce94f8f0f8ce0

15 years agoStore the MemPage structure in memory following, instead of preceding, the page data...
dan [Thu, 10 Jun 2010 06:53:26 +0000 (06:53 +0000)] 
Store the MemPage structure in memory following, instead of preceding, the page data for cached pages. This reduces the likelihood of a corrupt database page image causing SQLite to read past the end of a buffer.

FossilOrigin-Name: 0ce42e76654d9ba52dac74c940d38b17866016ba

15 years agoRemove a condition that must always be true. Replace it with an assert().
drh [Thu, 10 Jun 2010 01:07:42 +0000 (01:07 +0000)] 
Remove a condition that must always be true.  Replace it with an assert().

FossilOrigin-Name: 7abcd54ec09e8025193d1e0ea57775051d823801

15 years agoFix test script problems causing errors in the "inmemory_journal" permutations.
dan [Wed, 9 Jun 2010 19:01:02 +0000 (19:01 +0000)] 
Fix test script problems causing errors in the "inmemory_journal" permutations.

FossilOrigin-Name: ea05b7f929e4696175dbc3ded36dba8ed2a6b575

15 years agoWhen restarting (wrapping) a log file, set all unused aReadMark[] slots to READMARK_N...
dan [Wed, 9 Jun 2010 16:58:49 +0000 (16:58 +0000)] 
When restarting (wrapping) a log file, set all unused aReadMark[] slots to READMARK_NOT_USED instead of 0. Setting them to 0 does not cause a problem, but may cause SQLite to obtain and release a few more file locks than would otherwise be necessary.

FossilOrigin-Name: 0797b10c0cc08ae38e26685d1f8331e37d428781

15 years agoFix for ticket [f973c7ac31].
dan [Wed, 9 Jun 2010 15:47:11 +0000 (15:47 +0000)] 
Fix for ticket [f973c7ac31].

FossilOrigin-Name: 6eb058dda8d5f87b02378d8efd821fe64a525dcc

15 years agoShift the meaning of aReadMark[] back so that +1 offset from mxFrame is
drh [Wed, 9 Jun 2010 14:45:12 +0000 (14:45 +0000)] 
Shift the meaning of aReadMark[] back so that +1 offset from mxFrame is
removed.  Add the new READMARK_NOT_USED value (0xffffffff) instead of
zero to signal an aReadMark[] that is not in use.

FossilOrigin-Name: c576827d55c156572b76cf7063e9f253ca6e7403

15 years agoSimpler fix for the race condition also fixed by [7c102c7b5f]
dan [Wed, 9 Jun 2010 11:28:43 +0000 (11:28 +0000)] 
Simpler fix for the race condition also fixed by [7c102c7b5f]

FossilOrigin-Name: 3c2de820034e01c2e939bd90a05a58159f60df50

15 years agoClose database opened by tester.tcl when it is sourced in all.test. Because test...
dan [Tue, 8 Jun 2010 15:50:53 +0000 (15:50 +0000)] 
Close database opened by tester.tcl when it is sourced in all.test. Because test scripts are now run in slave interpreters, this connection was not being closed by the first script run as it was previously.

FossilOrigin-Name: b072e9f69ad5ec68b8ec4c716556070001f885e0

15 years agoChanges to wal3.test to support small default cache size settings. And builds that...
dan [Tue, 8 Jun 2010 15:16:10 +0000 (15:16 +0000)] 
Changes to wal3.test to support small default cache size settings. And builds that create autovacuum databases by default.

FossilOrigin-Name: ac4cc2574bafce30390a34f13228380d017791cb

15 years agoIn os_unix.c, call munmap() to unmap a shared-memory region prior to closing the...
dan [Mon, 7 Jun 2010 19:26:54 +0000 (19:26 +0000)] 
In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the associated file descriptor.

FossilOrigin-Name: 95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc

15 years agoChange all.test, quick.test and permutations.test so that they use a separate interpr...
dan [Mon, 7 Jun 2010 17:47:26 +0000 (17:47 +0000)] 
Change all.test, quick.test and permutations.test so that they use a separate interpreter for each test file.

FossilOrigin-Name: 7c33eb5a5add8fe76dd412ecab5b6ff8cd78a98d