]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Tue, 6 Jul 2010 10:55:44 +0000 (10:55 +0000)]
Before calling Tcl_ExitThread() in a multi-threaded test, call Tcl_DoOneEvent() as many times as necessary to handle any queued events.
FossilOrigin-Name:
b3399b40785d13754979203f15d71c95fec50282
drh [Tue, 6 Jul 2010 09:29:01 +0000 (09:29 +0000)]
Reorder variable declarations in the previous check-in to avoid putting code
before declarations when not testing.
FossilOrigin-Name:
d1fe8ab4a176180053d35300ad0540a27c6cd76d
dan [Tue, 6 Jul 2010 07:36:18 +0000 (07:36 +0000)]
Ensure the correct error code is returned if an attempt to parse a database schema made by an ATTACH statement fails.
FossilOrigin-Name:
c272196115ab3926e56b6f4183ec127e3f98ef9c
drh [Mon, 5 Jul 2010 21:00:43 +0000 (21:00 +0000)]
Modify the VFS xAccess() method on winNT so that it returns false for
an exists test of a zero-length file. This makes the windows VFS work
the same as the unix VFS.
FossilOrigin-Name:
ec35f25403744f7441ac5ae1486b84d8ebc13e98
dan [Mon, 5 Jul 2010 19:13:26 +0000 (19:13 +0000)]
Simplify the previous commit by removing the pagerCheckForOrDeleteWAL() wrapper.
FossilOrigin-Name:
a1324d125e2dd7004eaf8680f5f832ef17285087
dan [Mon, 5 Jul 2010 19:03:35 +0000 (19:03 +0000)]
Allocate a buffer containing the full path-name to the associated WAL file when a pager is created. This saves having to construct a new buffer each time a new read-transaction is opened and SQLite checks for the existance of a WAL file.
FossilOrigin-Name:
3053a4ad15343a56efa430503797b77bb6d1e770
drh [Mon, 5 Jul 2010 17:43:32 +0000 (17:43 +0000)]
When rolling back page 1 from a journal, restore the "nReserve" setting
in case it has been corrupted by a prior crash.
FossilOrigin-Name:
c0d124da88e84e68679c2f3f4b2b35c03aecc916
dan [Mon, 5 Jul 2010 14:54:48 +0000 (14:54 +0000)]
Do not report an error if the open-file-count is not as it should be after running a multi-threaded test. The counter instrumentation is not thread-safe.
FossilOrigin-Name:
ea80b21c881fabaec1da788588c35c6c9782dcbd
dan [Mon, 5 Jul 2010 12:54:08 +0000 (12:54 +0000)]
Call Tcl_ExitThread() from within threads created using Tcl_CreateThread(). Not doing so causes notifier related errors on OSX.
FossilOrigin-Name:
684eae6623ef1d0336b7a734b17ed307c720b6f4
dan [Mon, 5 Jul 2010 05:54:55 +0000 (05:54 +0000)]
Add any files specified as part of the QUICKTEST_INCLUDE environment variable to the set of test files run as part of "make test". Release testing uses this trick.
FossilOrigin-Name:
a40a6e7df191ca10bc3aa504d374b9f5bfa33cbc
dan [Mon, 5 Jul 2010 05:31:48 +0000 (05:31 +0000)]
Fix typos in permutations.test.
FossilOrigin-Name:
b6600ecb4ee8e4d0fe5e8399450ef25b15071a91
dan [Sat, 3 Jul 2010 19:08:19 +0000 (19:08 +0000)]
Do not run the memsubsys1.test script under the memsubsys1 permutation.
FossilOrigin-Name:
3a1a8c77a5c7b57755f18d84234faed1f16c2103
drh [Sat, 3 Jul 2010 17:13:31 +0000 (17:13 +0000)]
Remove the unused xRename() method from the sqlite3_vfs object.
Add better documentation on the xCurrentTimeInt64() method.
FossilOrigin-Name:
51ec0e5432dd6849b83a3d969a018482eb3bb083
dan [Sat, 3 Jul 2010 16:37:45 +0000 (16:37 +0000)]
Further changes to test scripts so that the "inmemory_journal" permutation works.
FossilOrigin-Name:
50f2f7dfd64f610982525fd7a0dd7c1ade67bebb
dan [Sat, 3 Jul 2010 13:59:01 +0000 (13:59 +0000)]
Fix a bug in the permutations.test script.
FossilOrigin-Name:
3b20ad03be55613d922d81aec5313327bf4098b9
dan [Sat, 3 Jul 2010 13:50:11 +0000 (13:50 +0000)]
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.
FossilOrigin-Name:
622378dbe3941f06c717c1e272cd1190e4358428
dan [Sat, 3 Jul 2010 13:45:52 +0000 (13:45 +0000)]
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.
FossilOrigin-Name:
78fc35ff4b01d4a583009ec8b8bf876738ca7b92
drh [Sat, 3 Jul 2010 12:31:34 +0000 (12:31 +0000)]
Cherry-pick the correct changes out of the recent "mistake" branch while
omitting the bogus changes.
FossilOrigin-Name:
48bf309391c32e7860c293acd13f3dda14212d39
drh [Sat, 3 Jul 2010 12:26:33 +0000 (12:26 +0000)]
Remove code accidently appended to pager.c.
FossilOrigin-Name:
7cbe175a69738499f9218ec56f1a39f040aea9dc
drh [Sat, 3 Jul 2010 12:00:53 +0000 (12:00 +0000)]
Print the SQLite source_id() string when running speed tests.
FossilOrigin-Name:
6d7640edcd69a932556f86500aedbf14e75ba7de
dan [Sat, 3 Jul 2010 10:00:00 +0000 (10:00 +0000)]
Fix an assert() in pager.c added by the previous commit. And various problems with test scripts in autovacuum and in-memory journal mode.
FossilOrigin-Name:
62a10101776b41236ff7bd08c8aa85765a43df7c
dan [Sat, 3 Jul 2010 08:01:24 +0000 (08:01 +0000)]
Do not attempt to open a WAL file for an in-memory or temporary database. Even if the database header suggests that it is a WAL database.
FossilOrigin-Name:
0fd809243652256d83ddcb58cf4890080654c667
dan [Sat, 3 Jul 2010 05:56:09 +0000 (05:56 +0000)]
Change code in OP_Rewind to avoid a valgrind warning following an error in the btree layer. This change does not fix any bug, just a warning.
FossilOrigin-Name:
4f62dbcfc96855f69e71d163bfc051d9db08cca9
drh [Sat, 3 Jul 2010 01:44:27 +0000 (01:44 +0000)]
Fix a buffer overrun in the where.c. Problem detected by valgrind.
FossilOrigin-Name:
15bb62330681a5b2aad95a1d1fc9ab8f6f1bd6b9
shaneh [Fri, 2 Jul 2010 19:49:38 +0000 (19:49 +0000)]
Changes to os_win.c to have it return same error code as os_unix.c.
FossilOrigin-Name:
33b6f069d8059903312282962181839ff983e5c4
drh [Fri, 2 Jul 2010 19:36:52 +0000 (19:36 +0000)]
Omit the OP_JournalMode opcode from the VDBE when SQLITE_OMIT_PRAGMA is
defined.
FossilOrigin-Name:
565ff65c61c85c9b2122b31bd9792692aa1e9cda
dan [Fri, 2 Jul 2010 19:04:59 +0000 (19:04 +0000)]
Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only.
FossilOrigin-Name:
336ce7d29767f76c4a92aa4bbc46d21e19871667
dan [Fri, 2 Jul 2010 18:58:01 +0000 (18:58 +0000)]
Do not run the tests in notify3.test unless the unlock-notify API is available.
FossilOrigin-Name:
0d7fd6fe9deeddbec8dff1393beed126ae44c0ee
drh [Fri, 2 Jul 2010 18:44:37 +0000 (18:44 +0000)]
Take out the incomplete initializer on the constant "dummy" in
sqlite3VdbeGetOp(). Add a comment that the MSVC warning there should
be ignored.
FossilOrigin-Name:
452ccaa9080e42657b5f0908bf40dbd834cd39f6
shaneh [Fri, 2 Jul 2010 18:15:31 +0000 (18:15 +0000)]
Fix a couple more compiler warnings under MSVC.
FossilOrigin-Name:
26bc27e3f4c8a666f3358f73fc21eccdec3508f6
drh [Fri, 2 Jul 2010 17:10:40 +0000 (17:10 +0000)]
Fix compiler warnings in the proxy locking code.
FossilOrigin-Name:
26c7689cfedf03e65bcd51df68d128101ed2c1ec
drh [Fri, 2 Jul 2010 17:07:42 +0000 (17:07 +0000)]
Remove a couple of C++ style comments from pager.c.
FossilOrigin-Name:
4f12e8ebdea0451cb32188a4bb812ca702c63275
shaneh [Fri, 2 Jul 2010 17:05:03 +0000 (17:05 +0000)]
Fix some warnings when compiling under MSVC.
FossilOrigin-Name:
708338773919fa024abbba55180654beb60e6d84
dan [Fri, 2 Jul 2010 16:36:18 +0000 (16:36 +0000)]
Add initializers for the xShmXXX() members to an sqlite3_io_methods structure in journal.c. This doesn't fix any real problem, just prevents a compiler warning.
FossilOrigin-Name:
dafb3577a2d5fbeebb17c8176af837f0aebf6ee5
drh [Fri, 2 Jul 2010 15:35:58 +0000 (15:35 +0000)]
Remove an unused call to sqlite3PageBegin() from pager_write(). Replace it
with an assert().
FossilOrigin-Name:
01c1278263fdd8454763be15bddd2558e720e6e0
dan [Fri, 2 Jul 2010 13:49:09 +0000 (13:49 +0000)]
Run tkt-
9d68c883 .test along with the other pager.c coverage tests. Add a test case to pager1.test.
FossilOrigin-Name:
c6714b0dbdc782e721662ec166d9f161bc05c6df
dan [Fri, 2 Jul 2010 11:27:43 +0000 (11:27 +0000)]
Additional test cases to cover branches in pager.c.
FossilOrigin-Name:
eddfb2b4062f8a8b907f0c7bc08a05c16692e900
drh [Fri, 2 Jul 2010 01:18:12 +0000 (01:18 +0000)]
Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
possible to invoke that function without holding a RESERVED lock.
FossilOrigin-Name:
6ae7617298c70f8e03dd0ed73b8153d4871fb023
drh [Thu, 1 Jul 2010 19:45:34 +0000 (19:45 +0000)]
If you delete a database file but not its *-wal file, then open the database
(thus creating a new empty database file) the *-wal file is automatically
deleted.
FossilOrigin-Name:
95c69dfbddaf4367cd699dfe8fcf8e06030c1f53
dan [Thu, 1 Jul 2010 19:01:56 +0000 (19:01 +0000)]
Add tests to pager1.test and pagerfault.test.
FossilOrigin-Name:
c6e75950928954fbb1590f952e3cdbcb0753b745
dan [Thu, 1 Jul 2010 15:09:47 +0000 (15:09 +0000)]
Add pager test cases. Change a condition in pager.c to NEVER().
FossilOrigin-Name:
a8f6341d3b12d64ef56ed05226e3b4f183b8957d
dan [Wed, 30 Jun 2010 10:36:18 +0000 (10:36 +0000)]
Add further test cases. Fix an assert() in pager.c.
FossilOrigin-Name:
8e65c0e3dac400f6a0ec3b7494fba62c14ed6182
dan [Wed, 30 Jun 2010 04:36:03 +0000 (04:36 +0000)]
Do not call pager_open_journal() from within PagerBegin() if the connection is in exclusive-access mode. It will be called from within PagerWrite() just as it is for non-exclusive mode anyway.
FossilOrigin-Name:
cdf2c5c2dd2e4404ffb85a680d31307afea266eb
dan [Wed, 30 Jun 2010 04:29:03 +0000 (04:29 +0000)]
Add coverage test cases. Have sqlite3_backup_step() transform SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning.
FossilOrigin-Name:
5e19bc360e098ec06a72f4a86254d8e62e93ea57
dan [Tue, 29 Jun 2010 10:30:23 +0000 (10:30 +0000)]
Add tests to pager1.test and pagerfault.test.
FossilOrigin-Name:
008513ee6115f8d6f4b4e1428c1c638282b971a3
dan [Mon, 28 Jun 2010 19:04:02 +0000 (19:04 +0000)]
Add extra pager tests.
FossilOrigin-Name:
6b7e419ddc241f457dd69878f09f5c51c70aa379
dan [Mon, 28 Jun 2010 11:23:09 +0000 (11:23 +0000)]
Fix some errors when compiling with SQLITE_OMIT_WAL.
FossilOrigin-Name:
3b68cb9c656db8c5c481199919a98f5764f7ebfa
dan [Mon, 28 Jun 2010 11:06:53 +0000 (11:06 +0000)]
Remove debugging code from test script.
FossilOrigin-Name:
a85ae33246226801f88c1e377725c192711797cc
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
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
drh [Sat, 26 Jun 2010 21:34:06 +0000 (21:34 +0000)]
Suppress various compiler warnings.
FossilOrigin-Name:
e82d008eaffb5522080cad6c69c1b194b78eadbd
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
drh [Sat, 26 Jun 2010 20:00:54 +0000 (20:00 +0000)]
Suppress a couple uninitialized variable warnings.
FossilOrigin-Name:
29571e228cc85f7768c3ad57d0c7af96b5a54983
dan [Sat, 26 Jun 2010 19:03:30 +0000 (19:03 +0000)]
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
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
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
dan [Fri, 25 Jun 2010 19:09:48 +0000 (19:09 +0000)]
Further test cases for pager1.test and pagerfault.test.
FossilOrigin-Name:
bfd563c4714d86805fa09ce9f4f807e5d502a99b
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
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
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
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
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
dan [Thu, 24 Jun 2010 19:16:06 +0000 (19:16 +0000)]
Add test cases to pager1.test and pagerfault.test.
FossilOrigin-Name:
4941e437d2638f36ac8510d4a5b4c780afc798bb
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
dan [Thu, 24 Jun 2010 17:37:57 +0000 (17:37 +0000)]
Modify ctime.test to work with SQLITE_THREADSAFE=2.
FossilOrigin-Name:
c6db3b303182202a8b03512e448607bce71de914
drh [Thu, 24 Jun 2010 14:52:25 +0000 (14:52 +0000)]
Disable memory-pressure induced cache spill during savepoint rollback.
FossilOrigin-Name:
a55eb4c3e9fa4ea43b8f8182eb9e39138df03f52
dan [Thu, 24 Jun 2010 13:24:26 +0000 (13:24 +0000)]
Add a coverage test to pagerfault.test.
FossilOrigin-Name:
b58db67e972b5660e62a9b7daa2c1e87c3cf0a68
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
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
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
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
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
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
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
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
drh [Wed, 23 Jun 2010 15:04:27 +0000 (15:04 +0000)]
Simplifications to the pager_delmaster() implementation.
FossilOrigin-Name:
8bfbdec647d29f0eb103ba7deb9116c44193f2e1
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
dan [Tue, 22 Jun 2010 15:18:44 +0000 (15:18 +0000)]
Add codec support to wal mode.
FossilOrigin-Name:
393741eba353d5d242b8e3c96db3ea2b92228036
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
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
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
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
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
dan [Mon, 21 Jun 2010 18:29:40 +0000 (18:29 +0000)]
Add test cases to pager1.test and pager2.test.
FossilOrigin-Name:
cc9ddae6d72b214f52b8949e644b91f4ab340a28
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
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
dan [Mon, 21 Jun 2010 07:45:47 +0000 (07:45 +0000)]
Add further pager tests.
FossilOrigin-Name:
4104b175a8c3560a7680f3d2b54416821bb2e19d
dan [Mon, 21 Jun 2010 06:00:15 +0000 (06:00 +0000)]
Merge latest trunk change.
FossilOrigin-Name:
f6d26e07b70965e332b1589804ca938593a5f432
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
drh [Sat, 19 Jun 2010 23:53:11 +0000 (23:53 +0000)]
Fix an uninitialized variable in os_unix.c.
FossilOrigin-Name:
822a0283c6bc1c75001f3d1c528a4ff89c6b039c
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
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
dan [Sat, 19 Jun 2010 17:26:37 +0000 (17:26 +0000)]
Add tests to pager1.test and pagerfault.test.
FossilOrigin-Name:
f5df83fd875073eee8e2269e87e2a8c9c7abc981
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
dan [Sat, 19 Jun 2010 11:30:41 +0000 (11:30 +0000)]
Add tests to pager1.test and pagerfault.test.
FossilOrigin-Name:
58c0b5bfed8c67cc3f2f4a6784d08c14e652c265
dan [Fri, 18 Jun 2010 18:59:49 +0000 (18:59 +0000)]
Add tests to pager1.test.
FossilOrigin-Name:
582fca89195af54e9668af249691654cfea63d04
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
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
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