dan
8fb66141ed
Merge together another accidental fork.
...
FossilOrigin-Name: c41f04edb20c0c8fc8c49a53d42cc0b8a0ff7fe3
2010-07-07 16:23:36 +00:00
shaneh
100efa3f73
Fix test numbering issue in nan.test.
...
FossilOrigin-Name: 5bb1330fef559d47dc854089dedba45bf05db192
2010-07-07 16:20:38 +00:00
dan
7fb574ecf7
Do not make the SQLITE_FCNTL_SIZE_HINT call if an error has already occurred during transaction commit.
...
FossilOrigin-Name: e92de834a39be07da5f0848d7ec5f1f6dff902a5
2010-07-07 16:18:45 +00:00
shaneh
538fa0b716
Close the file handle before returning. TCL test script issue only.
...
FossilOrigin-Name: f4076d8567243174c023b7aa7ae9ca7f8f73e33b
2010-07-07 15:41:55 +00:00
shaneh
cce1b689f4
Fixed a new error introduced by last check-in of os_win.c. Updated xAccess() to support SimulateIOError().
...
FossilOrigin-Name: 8eefc287265443ec043bdab629597e79c9d22006
2010-07-07 14:45:40 +00:00
drh
e9187b4371
Remove two more testcase() macros that require 4GiB WAL files to hit.
...
FossilOrigin-Name: 16e18f2706e67210eae62edfb748758fd27f23d7
2010-07-07 14:39:59 +00:00
drh
09b5dbc519
Remove a testcase() macro that would require a 4GiB WAL to reach.
...
FossilOrigin-Name: 15f9c2713bdfd3d6c8d8d4298f101d128e39b99a
2010-07-07 14:35:58 +00:00
drh
f77e2ac27d
Fix a compiler warning in PRAGMA journal_mode.
...
FossilOrigin-Name: d94269e60dbcb50b8a35f142c64ed013cc0045ac
2010-07-07 14:33:09 +00:00
drh
146151cd23
Avoid the need for a NEVER() from pager_write_pagelist() by passing in
...
pPager as an extra parameter.
FossilOrigin-Name: b3179379437dbcb1d8e7f1f8f631a3e7df1a5c9a
2010-07-07 14:19:13 +00:00
drh
51538e9d90
Merge together the accident fork.
...
FossilOrigin-Name: cdcf08cb18b1e290a4093454bebbd3e7094d6804
2010-07-07 14:00:17 +00:00
shaneh
7ea7259176
Fix minor issue in xAccess() method for Windows.
...
FossilOrigin-Name: 4bfd46f1db41009a1b925d61c6f074b933caa4ec
2010-07-07 13:58:11 +00:00
dan
f6c614715c
Make sure the schema is loaded before preparing a "PRAGMA journal_mode" command. This helps it return meaningful results when it is the first command executed by a new database connection.
...
FossilOrigin-Name: ef126e775a02d69a9cab53028513e8799e1b6044
2010-07-07 13:54:28 +00:00
drh
3e8e7ecbc4
Add testcase macros to ensure that large-file cases are tested in WAL.
...
FossilOrigin-Name: 8156b57ac33161ae6dd8a9413127ecce3c9eae83
2010-07-07 13:43:19 +00:00
dan
60f9da7561
Run some fts3 tests as part of the "wal" permutation.
...
FossilOrigin-Name: 8657455a11d20dbf78247559670943a72541a09d
2010-07-07 11:42:59 +00:00
dan
78f1e53840
Change the async-IO extension to return SQLITE_IOERR_SHORT_READ when appropriate. This prevents a valgrind warning in the test suite.
...
FossilOrigin-Name: d9e3287900ae4aa7722ad0132bb8d6cd2755d3a6
2010-07-07 11:05:21 +00:00
dan
bd0e9070e5
Fix a problem with writing to databases larger than 2^32 bytes with WAL mode.
...
FossilOrigin-Name: b956ddca75d64ba662fa0b03b643822d836b6501
2010-07-07 09:48:44 +00:00
drh
4d9a7bf990
Remote the SQLITE_OMIT_GLOBALRECOVER macro - it is subsumed by
...
SQLITE_OMIT_DEPRECATED. Add support to sqlite3_compileoption_used()
for SQLITE_OMIT_WAL.
FossilOrigin-Name: 21a2db908b9eeb7477fc9d8b2b54482db93cd76f
2010-07-07 01:52:31 +00:00
shaneh
186070588c
Minor changes to Makefile.in to bring it more inline with main.mk.
...
FossilOrigin-Name: 5621862b0e2fc945ded51f5926a6b4c9f07d0ab7
2010-07-06 20:37:09 +00:00
shaneh
33d85c9cd7
Changes to pager1.test to support Windows.
...
FossilOrigin-Name: fce689ebe6165276598539779958407856e2f84f
2010-07-06 20:34:37 +00:00
shaneh
133ce560c6
Modified the xWrite() method on Windows to differentiate between IO and disk full error returns.
...
FossilOrigin-Name: ca4b7ffbd44937a02ae62d606f9e1eb767075c22
2010-07-06 20:33:47 +00:00
dan
ea5542d126
Do not do the *-closeallfiles test for notify2.test. It uses multiple threads.
...
FossilOrigin-Name: fb09152db879211986a7161a96a61da1425f79ef
2010-07-06 11:26:15 +00:00
dan
e1a2a990b8
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
2010-07-06 10:55:44 +00:00
drh
9e55d47d33
Reorder variable declarations in the previous check-in to avoid putting code
...
before declarations when not testing.
FossilOrigin-Name: d1fe8ab4a176180053d35300ad0540a27c6cd76d
2010-07-06 09:29:01 +00:00
dan
9859c427a2
Ensure the correct error code is returned if an attempt to parse a database schema made by an ATTACH statement fails.
...
FossilOrigin-Name: c272196115ab3926e56b6f4183ec127e3f98ef9c
2010-07-06 07:36:18 +00:00
drh
722a7e9ab3
Modify the VFS xAccess() method on winNT so that it returns false for
...
an exists test of a zero-length file. This makes the windows VFS work
the same as the unix VFS.
FossilOrigin-Name: ec35f25403744f7441ac5ae1486b84d8ebc13e98
2010-07-05 21:00:43 +00:00
dan
db10f08282
Simplify the previous commit by removing the pagerCheckForOrDeleteWAL() wrapper.
...
FossilOrigin-Name: a1324d125e2dd7004eaf8680f5f832ef17285087
2010-07-05 19:13:26 +00:00
dan
3e875ef3b5
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
2010-07-05 19:03:35 +00:00
drh
8220da7b8b
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
2010-07-05 17:43:32 +00:00
dan
92d516a221
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
2010-07-05 14:54:48 +00:00
dan
3374f8aee4
Call Tcl_ExitThread() from within threads created using Tcl_CreateThread(). Not doing so causes notifier related errors on OSX.
...
FossilOrigin-Name: 684eae6623ef1d0336b7a734b17ed307c720b6f4
2010-07-05 12:54:08 +00:00
dan
6310990d54
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
2010-07-05 05:54:55 +00:00
dan
eace527b8c
Fix typos in permutations.test.
...
FossilOrigin-Name: b6600ecb4ee8e4d0fe5e8399450ef25b15071a91
2010-07-05 05:31:48 +00:00
dan
d53850e579
Do not run the memsubsys1.test script under the memsubsys1 permutation.
...
FossilOrigin-Name: 3a1a8c77a5c7b57755f18d84234faed1f16c2103
2010-07-03 19:08:19 +00:00
drh
2667be5e3f
Remove the unused xRename() method from the sqlite3_vfs object.
...
Add better documentation on the xCurrentTimeInt64() method.
FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083
2010-07-03 17:13:31 +00:00
dan
b3f4351f00
Further changes to test scripts so that the "inmemory_journal" permutation works.
...
FossilOrigin-Name: 50f2f7dfd64f610982525fd7a0dd7c1ade67bebb
2010-07-03 16:37:45 +00:00
dan
d506de0208
Fix a bug in the permutations.test script.
...
FossilOrigin-Name: 3b20ad03be55613d922d81aec5313327bf4098b9
2010-07-03 13:59:01 +00:00
dan
c844a0368a
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.
...
FossilOrigin-Name: 622378dbe3941f06c717c1e272cd1190e4358428
2010-07-03 13:50:11 +00:00
dan
3f94b60961
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.
...
FossilOrigin-Name: 78fc35ff4b01d4a583009ec8b8bf876738ca7b92
2010-07-03 13:45:52 +00:00
drh
b0ab011dc5
Cherry-pick the correct changes out of the recent "mistake" branch while
...
omitting the bogus changes.
FossilOrigin-Name: 48bf309391c32e7860c293acd13f3dda14212d39
2010-07-03 12:31:34 +00:00
drh
40e459e041
Remove code accidently appended to pager.c.
...
FossilOrigin-Name: 7cbe175a69738499f9218ec56f1a39f040aea9dc
2010-07-03 12:26:33 +00:00
drh
bb810a9a7b
Print the SQLite source_id() string when running speed tests.
...
FossilOrigin-Name: 6d7640edcd69a932556f86500aedbf14e75ba7de
2010-07-03 12:00:53 +00:00
dan
f43d7fce61
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
2010-07-03 10:00:00 +00:00
dan
fce218c5ad
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
2010-07-03 08:01:24 +00:00
dan
2411dea3ca
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
2010-07-03 05:56:09 +00:00
drh
0eb77d0568
Fix a buffer overrun in the where.c. Problem detected by valgrind.
...
FossilOrigin-Name: 15bb62330681a5b2aad95a1d1fc9ab8f6f1bd6b9
2010-07-03 01:44:27 +00:00
shaneh
fd28639f12
Changes to os_win.c to have it return same error code as os_unix.c.
...
FossilOrigin-Name: 33b6f069d8059903312282962181839ff983e5c4
2010-07-02 19:49:38 +00:00
drh
cac29a67e9
Omit the OP_JournalMode opcode from the VDBE when SQLITE_OMIT_PRAGMA is
...
defined.
FossilOrigin-Name: 565ff65c61c85c9b2122b31bd9792692aa1e9cda
2010-07-02 19:36:52 +00:00
dan
5257af7dba
Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only.
...
FossilOrigin-Name: 336ce7d29767f76c4a92aa4bbc46d21e19871667
2010-07-02 19:04:59 +00:00
dan
84b9618231
Do not run the tests in notify3.test unless the unlock-notify API is available.
...
FossilOrigin-Name: 0d7fd6fe9deeddbec8dff1393beed126ae44c0ee
2010-07-02 18:58:01 +00:00
drh
a0b75da197
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
2010-07-02 18:44:37 +00:00
shaneh
8a300f8095
Fix a couple more compiler warnings under MSVC.
...
FossilOrigin-Name: 26bc27e3f4c8a666f3358f73fc21eccdec3508f6
2010-07-02 18:15:31 +00:00
drh
0ab216a6b4
Fix compiler warnings in the proxy locking code.
...
FossilOrigin-Name: 26c7689cfedf03e65bcd51df68d128101ed2c1ec
2010-07-02 17:10:40 +00:00
drh
56c77ef853
Remove a couple of C++ style comments from pager.c.
...
FossilOrigin-Name: 4f12e8ebdea0451cb32188a4bb812ca702c63275
2010-07-02 17:07:42 +00:00
shaneh
5eba1f60fe
Fix some warnings when compiling under MSVC.
...
FossilOrigin-Name: 708338773919fa024abbba55180654beb60e6d84
2010-07-02 17:05:03 +00:00
dan
230fd98dd3
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
2010-07-02 16:36:18 +00:00
drh
5fc4c689c3
Remove an unused call to sqlite3PageBegin() from pager_write(). Replace it
...
with an assert().
FossilOrigin-Name: 01c1278263fdd8454763be15bddd2558e720e6e0
2010-07-02 15:35:58 +00:00
dan
f412ee2ea4
Run tkt-9d68c883.test along with the other pager.c coverage tests. Add a test case to pager1.test.
...
FossilOrigin-Name: c6714b0dbdc782e721662ec166d9f161bc05c6df
2010-07-02 13:49:09 +00:00
dan
c396d4af58
Additional test cases to cover branches in pager.c.
...
FossilOrigin-Name: eddfb2b4062f8a8b907f0c7bc08a05c16692e900
2010-07-02 11:27:43 +00:00
drh
b2961b00f3
Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
...
possible to invoke that function without holding a RESERVED lock.
FossilOrigin-Name: 6ae7617298c70f8e03dd0ed73b8153d4871fb023
2010-07-02 01:18:12 +00:00
drh
32f2964390
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
2010-07-01 19:45:34 +00:00
dan
d0b0d4dc23
Add tests to pager1.test and pagerfault.test.
...
FossilOrigin-Name: c6e75950928954fbb1590f952e3cdbcb0753b745
2010-07-01 19:01:56 +00:00
dan
89ccf4481b
Add pager test cases. Change a condition in pager.c to NEVER().
...
FossilOrigin-Name: a8f6341d3b12d64ef56ed05226e3b4f183b8957d
2010-07-01 15:09:47 +00:00
dan
6b63ab47d7
Add further test cases. Fix an assert() in pager.c.
...
FossilOrigin-Name: 8e65c0e3dac400f6a0ec3b7494fba62c14ed6182
2010-06-30 10:36:18 +00:00
dan
3ad5fd2502
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
2010-06-30 04:36:03 +00:00
dan
ba3cbf3d4b
Add coverage test cases. Have sqlite3_backup_step() transform SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning.
...
FossilOrigin-Name: 5e19bc360e098ec06a72f4a86254d8e62e93ea57
2010-06-30 04:29:03 +00:00
dan
c8ce39723d
Add tests to pager1.test and pagerfault.test.
...
FossilOrigin-Name: 008513ee6115f8d6f4b4e1428c1c638282b971a3
2010-06-29 10:30:23 +00:00
dan
d353331aba
Add extra pager tests.
...
FossilOrigin-Name: 6b7e419ddc241f457dd69878f09f5c51c70aa379
2010-06-28 19:04:02 +00:00
dan
38e1a279c9
Fix some errors when compiling with SQLITE_OMIT_WAL.
...
FossilOrigin-Name: 3b68cb9c656db8c5c481199919a98f5764f7ebfa
2010-06-28 11:23:09 +00:00
dan
9c788140f7
Remove debugging code from test script.
...
FossilOrigin-Name: a85ae33246226801f88c1e377725c192711797cc
2010-06-28 11:06:53 +00:00
dan
1db95106ee
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
2010-06-28 10:15:19 +00:00
drh
7750ab48f5
Make walIndexTryHdr() a private function. Fix an issue with SQLITE_MUTEX_NOOP.
...
FossilOrigin-Name: ec65bbd06bdd3bf16a742c5bb1fab0dce756c01a
2010-06-26 22:16:02 +00:00
drh
ff82894faa
Suppress various compiler warnings.
...
FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd
2010-06-26 21:34:06 +00:00
drh
37f9918758
Fix two asserts on the scratch allocator to allow for up to two outstanding
...
scratch allocations per thread.
FossilOrigin-Name: f149b498b6ada3fc9f71ee104c351554c80c7f8a
2010-06-26 20:25:30 +00:00
drh
7d113eb0ab
Suppress a couple uninitialized variable warnings.
...
FossilOrigin-Name: 29571e228cc85f7768c3ad57d0c7af96b5a54983
2010-06-26 20:00:54 +00:00
dan
4013130485
Add test file tkt-d11f09d36e.test.
...
FossilOrigin-Name: 6e469b63fab3cd63b23110aaceccfed0587c6a87
2010-06-26 19:03:30 +00:00
drh
afb15027e8
Remove a NEVER() in pager that can in fact be reached in obscure failure
...
cases.
FossilOrigin-Name: 42b8bd1c70d8dbbc4a59e2fdee8654c4fe84f979
2010-06-26 19:02:33 +00:00
dan
6ce60746c1
Fix a case where the doNotSyncSpill flag may remain permanently set following aIO error.
...
FossilOrigin-Name: 56c7d111bf7013be95a4c2a657a4861eee91db91
2010-06-26 17:15:07 +00:00
dan
273f3f0d1a
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
2010-06-26 15:42:33 +00:00
dan
f9b4419d39
Further test cases for pager1.test and pagerfault.test.
...
FossilOrigin-Name: bfd563c4714d86805fa09ce9f4f807e5d502a99b
2010-06-25 19:09:48 +00:00
dan
52d6fc0eda
Reduce the average (but not maximum) size of the allocations made as part of a checkpoint.
...
FossilOrigin-Name: 4a7fd91b7ab2c5d21fbac7f6f123820c8f4ec7f6
2010-06-25 16:34:32 +00:00
dan
bdf1e2437e
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
2010-06-25 15:16:25 +00:00
drh
4a466d3ef3
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
2010-06-25 14:17:58 +00:00
drh
d36f660d5b
Change the name of the shared-memory file on windows from *-wal-index to
...
*-shm, for consistency with unix.
FossilOrigin-Name: 5995cb15080cfb707ddda501f975673f658106f7
2010-06-25 12:52:47 +00:00
dan
f544b4c4b8
Modify the merge-sort in wal.c so that it does not use recursion.
...
FossilOrigin-Name: daea6c054cee3564d8460d876b78a325ebc382dd
2010-06-25 11:35:52 +00:00
dan
ec6ffc1a6a
Add test cases to pager1.test and pagerfault.test.
...
FossilOrigin-Name: 4941e437d2638f36ac8510d4a5b4c780afc798bb
2010-06-24 19:16:06 +00:00
drh
314f30db22
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
2010-06-24 18:36:33 +00:00
dan
cfa800cb36
Modify ctime.test to work with SQLITE_THREADSAFE=2.
...
FossilOrigin-Name: c6db3b303182202a8b03512e448607bce71de914
2010-06-24 17:37:57 +00:00
drh
7cf4c7adf0
Disable memory-pressure induced cache spill during savepoint rollback.
...
FossilOrigin-Name: a55eb4c3e9fa4ea43b8f8182eb9e39138df03f52
2010-06-24 14:52:25 +00:00
dan
0a6052ec51
Add a coverage test to pagerfault.test.
...
FossilOrigin-Name: b58db67e972b5660e62a9b7daa2c1e87c3cf0a68
2010-06-24 13:24:26 +00:00
dan
dca321aed4
Add coverage tests. Remove a NEVER macro from pager.c, as the condition can now be true in wal mode.
...
FossilOrigin-Name: 7aac9ad6dd14b1c56eb8e4750ac769c6197c30bd
2010-06-24 10:50:17 +00:00
drh
a927e94e71
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
2010-06-24 02:46:48 +00:00
drh
cd28508e58
Fix and/or improve comments in wal.c. No code changes.
...
FossilOrigin-Name: ee9991be082202c6637adb47affc777e7917be04
2010-06-23 22:00:35 +00:00
dan
346e426753
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits.
...
FossilOrigin-Name: 3e9680c4c18140d083b24e05a21ea6792aef2487
2010-06-23 19:27:36 +00:00
drh
75e876be30
Include the SOURCE_ID value in the log messages output for corruption, misuse,
...
and CANTOPEN errors.
FossilOrigin-Name: 1727a81fed65bebfea43e0bda271584096d82785
2010-06-23 17:59:51 +00:00
drh
bd9676c19e
Adjust the shared-memory locking range to account for the new version number
...
values in the wal-index header.
FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf
2010-06-23 17:58:38 +00:00
dan
10f5a50e57
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
2010-06-23 15:55:43 +00:00
drh
b316cb22de
Fix the xCurrentTimeInt64 interface on windows. It was off by a factor of 10.
...
FossilOrigin-Name: 51ef43b9f7db8fabf73d9c8a76dae6c275e50d58
2010-06-23 15:18:11 +00:00
drh
a64febe1d2
Simplifications to the pager_delmaster() implementation.
...
FossilOrigin-Name: 8bfbdec647d29f0eb103ba7deb9116c44193f2e1
2010-06-23 15:04:27 +00:00
drh
a715211820
Disable code used only by the codec when the codec is not deployed.
...
FossilOrigin-Name: 2c90276e340aa19d78d2e33c9f759f8eda0b82a3
2010-06-22 21:15:49 +00:00
dan
47ee386f06
Add codec support to wal mode.
...
FossilOrigin-Name: 393741eba353d5d242b8e3c96db3ea2b92228036
2010-06-22 15:18:44 +00:00
drh
242c4f7702
When trying to transition from journal_mode MEMORY to WAL, use OFF as an
...
intermediate journal mode.
FossilOrigin-Name: 4775b8f9a9d9b66fcd5abf3af111fcad249e662e
2010-06-22 14:49:39 +00:00
dan
68928b6c3e
Some changes to test scripts related to codec enabled versions of sqlite.
...
FossilOrigin-Name: 85dd51a75c75b2a123744f646e04538e4e5d89b3
2010-06-22 13:46:43 +00:00
dan
3c3dd7b927
i
...
Fix problem with handling of -vfs option in tcl interface.
FossilOrigin-Name: 8f98e8b5a557db5759747f3aae5ea01fb0d1f455
2010-06-22 11:10:40 +00:00
drh
39cf51097f
Minor tweaks to get the pager working for corner cases when the
...
SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN flag is set.
FossilOrigin-Name: 82b38fca1aea345ade954517661145f1859e701c
2010-06-21 21:45:37 +00:00
drh
de3c301d63
Fix comment inside the pager_unlock() routine. Always close the master
...
journal file before trying to delete it.
FossilOrigin-Name: f820b815c9bff368eb1ccb850966a812151e610e
2010-06-21 20:19:25 +00:00
dan
0e986f51a4
Add test cases to pager1.test and pager2.test.
...
FossilOrigin-Name: cc9ddae6d72b214f52b8949e644b91f4ab340a28
2010-06-21 18:29:40 +00:00
drh
24f0f7716a
Merge the experimental UNDELETABLE_WHEN_OPEN optimization into the trunk.
...
FossilOrigin-Name: ee0acef1faffd480fd2136f81fb2b6f6a17b5388
2010-06-21 12:47:41 +00:00
dan
e08341c664
Change things so that journal2.test works with ENABLE_ATOMIC_WRITE.
...
FossilOrigin-Name: a64d96db09ef2b7651fa4e98d3c7bf3ae5d3fe96
2010-06-21 12:34:29 +00:00
dan
153eda0aa4
Add further pager tests.
...
FossilOrigin-Name: 4104b175a8c3560a7680f3d2b54416821bb2e19d
2010-06-21 07:45:47 +00:00
dan
248af428ea
Merge latest trunk change.
...
FossilOrigin-Name: f6d26e07b70965e332b1589804ca938593a5f432
2010-06-21 06:00:15 +00:00
dan
672b41beaa
Fix jrnlmode2.test so that it works on systems where UNDELETABLE_WHEN_OPEN is defined.
...
FossilOrigin-Name: 59be370e52ec814c45efa6cbac45b6df94661b54
2010-06-21 05:40:49 +00:00
drh
19515c8da1
Fix an uninitialized variable in os_unix.c.
...
FossilOrigin-Name: 822a0283c6bc1c75001f3d1c528a4ff89c6b039c
2010-06-19 23:53:11 +00:00
dan
c548b78310
Fix an assert() failure that could occur if compiling with OMIT_SHARED_CACHE.
...
FossilOrigin-Name: 3e76a9f2c041a6d36614f540bb89588703d85925
2010-06-19 19:06:33 +00:00
dan
8ce49d6ac0
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag.
...
FossilOrigin-Name: 5a5ff4e3e4c707464f227907d0aefb8ef42180dd
2010-06-19 18:12:02 +00:00
dan
146ed78b78
Add tests to pager1.test and pagerfault.test.
...
FossilOrigin-Name: f5df83fd875073eee8e2269e87e2a8c9c7abc981
2010-06-19 17:26:37 +00:00
drh
7234c6d6f6
Change the unix VFS to always allocate shared-memory using a file in the
...
same directory as the database. Otherwise, a chroot might cause different
processes to use different shared memory files resulting in database
corruption.
FossilOrigin-Name: 2241788bc85fbc48e9cfecb95fe0a858338e37cb
2010-06-19 15:10:09 +00:00
dan
de4996e2ee
Add tests to pager1.test and pagerfault.test.
...
FossilOrigin-Name: 58c0b5bfed8c67cc3f2f4a6784d08c14e652c265
2010-06-19 11:30:41 +00:00
dan
1f4cb65a9e
Add tests to pager1.test.
...
FossilOrigin-Name: 582fca89195af54e9668af249691654cfea63d04
2010-06-18 18:59:49 +00:00
dan
d956efebea
Rearrange some code in OP_JournalMode to avoid incorrect returns from subsequent invocations of "PRAGMA journal_mode" following an IO error.
...
FossilOrigin-Name: ce0a4a9b5f981d066822a9ae63740c91b35bfc60
2010-06-18 16:13:45 +00:00
dan
83acd423a1
Change the implementation of the unix implementation of xAccess() so that it returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size.
...
FossilOrigin-Name: 077b0e5bcd849130c8df373fc2134c4b44351882
2010-06-18 11:10:06 +00:00
dan
be5c10477c
Apply [b9b11855e8] (the alternate fix to [fc62af4523]) to the trunk.
...
FossilOrigin-Name: 9a949a3a5c32b8bfbb94e10e18d050ec80a25553
2010-06-17 17:05:53 +00:00
dan
cd27cffa97
Merge trunk change [7c3a86b9c7].
...
FossilOrigin-Name: bd7bc4e0e28bc749034ff1a9290a69330c5d8ca4
2010-06-17 16:44:52 +00:00
dan
731bf5bcf8
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
2010-06-17 16:44:21 +00:00
drh
0cf68fa4c6
Fix the tkt-fc62af4523.test to work around non-randomness of the
...
randomblob() function when in testing mode.
FossilOrigin-Name: 7c3a86b9c7e2a35ce755c32b38e911e79d843fad
2010-06-17 16:08:53 +00:00
dan
b70f82a7a5
Fix bug in journal2.test.
...
FossilOrigin-Name: c1e04f1d4e8575ebc41b5b4403dbfe3f60d578dc
2010-06-17 11:36:28 +00:00
dan
24827d0c0f
Merge trunk updates with experimental branch.
...
FossilOrigin-Name: 9f6ea1de5abab0ca28688e257ddf03c66413cf6e
2010-06-17 10:52:07 +00:00
dan
7c6d618615
Do not delete the journal file in "PRAGMA journal_mode" commands. This fixes [fc62af4523].
...
FossilOrigin-Name: 1ec74591a93e8b27ad3ac739914a48a91972e82c
2010-06-17 10:42:06 +00:00
dan
cb0a7a7267
Add test case for [fc62af4523].
...
FossilOrigin-Name: cccd32c692057beb08a994102c6a10126ddeb937
2010-06-17 10:24:27 +00:00
dan
c002518074
Merge fix [f80c3f922a] with experimental changes.
...
FossilOrigin-Name: 20133e9ca98f5e6c42051ed3d65e4eb71d5366a5
2010-06-17 06:19:53 +00:00
drh
b28e59bbbb
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
2010-06-17 02:13:39 +00:00
dan
2a321c7547
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
2010-06-16 19:04:23 +00:00
dan
53f04f3b3f
Add extra test cases to pager1.test.
...
FossilOrigin-Name: ad3209572d0e6afe5c8b52313e334509661045e2
2010-06-16 12:30:10 +00:00
dan
b0ac3e3a17
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method.
...
FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01
2010-06-16 10:55:42 +00:00
dan
a4a9095ec0
Rationalize a common pattern in tcl test cases into proc do_multiclient_test.
...
FossilOrigin-Name: efe44564983f115017658dd8a130226366d42bab
2010-06-15 19:07:42 +00:00
dan
2fce9ab3f8
Fix a problem introduced into lock2.test by the previous commit.
...
FossilOrigin-Name: c1c9f6fa9d75df740e577dbc5e6a24b91ad2bdd0
2010-06-15 18:00:06 +00:00
dan
e91a54e1be
Add test file pager1.test, containing tests of inter-process locking in non-wal mode.
...
FossilOrigin-Name: 6e43eed9310bae9ca5e91f8fd9eafc45a16b7019
2010-06-15 17:44:47 +00:00
dan
3a3803b61a
Run extra iterations in wal3.test to ensure test coverage.
...
FossilOrigin-Name: ea80cbe51e33d6a3f15a4ad56f360fc5323866de
2010-06-15 14:21:17 +00:00
dan
422309c447
Merge in [2c5e48a485].
...
Merge in [2c5e48a485].
Merge in [2c5e48a485].
FossilOrigin-Name: 03c0f4fd9cbb655477b63ebbb6af7822715644aa
2010-06-15 14:06:06 +00:00
drh
cc3af5156e
Minor tweaks to the interface documentation - adding hyperlinks.
...
FossilOrigin-Name: 07b2fdd1cebbdbde5098a662eea65a0c9e8b5442
2010-06-15 12:09:06 +00:00
drh
ffca43014b
Updates to comments and testcase() macros in wal.c.
...
FossilOrigin-Name: 4d90cc0bc07e791b2838fc384866bd5c2282f681
2010-06-15 11:21:54 +00:00
dan
0626dfc3dc
Changes to the way tcl test scripts work. No changes to production code.
...
FossilOrigin-Name: 2c5e48a4855e2ec4572697c8fcfe4433e302ef33
2010-06-15 06:56:37 +00:00
drh
f886b4f851
Fix an error in the walfault.test script introduced by the previous check-in.
...
FossilOrigin-Name: a2b9374fc6f0aba2d465d432e1124bd957aab548
2010-06-14 18:06:20 +00:00
drh
6b017cc6d4
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems
...
to fit in there logically.
FossilOrigin-Name: 58dfd83d8b7905391e2a06bb918ffa209c6de6b5
2010-06-14 18:01:46 +00:00
drh
6f72beb20c
Merge the experimental shared-memory mmap-by-chunk changes into the trunk.
...
FossilOrigin-Name: f295e7ed5f04f6b8bffdaff8b565be3836ce4e80
2010-06-14 17:09:53 +00:00
dan
9785fc9510
Add the new xShmMap (formerly xShmPage) to os_win.c.
...
FossilOrigin-Name: 13e7a8242206bca4b5bf356ef074e66474d39609
2010-06-14 16:16:33 +00:00
dan
188019153d
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.
...
FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc
2010-06-14 14:07:50 +00:00
dan
ad3cadd8b2
Update some comments in wal.c. No code changes.
...
FossilOrigin-Name: 1ce9c92bffa5d7f8431c005b29d698b0f5b95875
2010-06-14 11:49:26 +00:00
dan
d60bf11036
Change the interface to internal function walGetHash() to make it easier to follow.
...
FossilOrigin-Name: 5e8e2e978ea48ce4ad93a936c838934f33d665df
2010-06-14 11:18:50 +00:00
dan
067f3165d8
Add the xShmPage method to the "crash" vfs in test6.c.
...
FossilOrigin-Name: 1008f536440840da7d56c01ec147a25295fd1fd4
2010-06-14 10:30:12 +00:00
dan
5d656852f7
Add some fault-injection tests to improve coverage.
...
FossilOrigin-Name: 37b26d125f4b1d8e75bb38800fefd145611f94aa
2010-06-14 07:53:26 +00:00