dan
22b328b23c
Improve coverage of pager.c.
...
FossilOrigin-Name: 2fa05d01b6b11788a5b73d203fcac9d4a4ba9fd8
2010-08-11 18:56:45 +00:00
dan
036391f7f8
Update an r-tree extension test case to account for recent changes to the query planner. Also fix a comment in rtree.c.
...
FossilOrigin-Name: eaaca669a4afc83906806b22365b010c83bc3db8
2010-08-11 12:26:46 +00:00
dan
78f9b73189
Use sqlite3DbFree() instead of sqlite3_free() to free any error message reported by the parser layer while attempting to parse a CREATE TABLE statement passed to sqlite3_declare_vtab().
...
FossilOrigin-Name: 7c674aaba52b00a78babc1e1ece7e5b652b65039
2010-08-11 11:59:37 +00:00
dan
d47f0d78b9
Fixes to tcl test files so that they work in auto-vacuum mode.
...
FossilOrigin-Name: ea9eaf7480f6fbe2a37813508d1b730d45155966
2010-08-11 11:35:50 +00:00
drh
d56b121d10
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.
...
FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e
2010-08-11 06:14:15 +00:00
dan
216eaab282
Merge experimental changes into trunk.
...
FossilOrigin-Name: aa092ac928dc19bd356d25a1dfd3f432dc145ce6
2010-08-11 06:04:19 +00:00
dan
7e68423894
Fix a bug in pager.c causing it to omit the xSync() call required following a hot-journal rollback.
...
FossilOrigin-Name: 42ba43ac690dc800fb8b969ae257a79942918342
2010-08-10 15:46:06 +00:00
dan
c864912ad1
Add variable pager.dbHintSize, used to limit the number of calls made to the xFileControl(FCNTL_SIZE_HINT) method.
...
FossilOrigin-Name: eb3ac895bd92c880ac6acca58de8cf9643c2b5e4
2010-08-10 09:58:57 +00:00
dan
84612fec1c
Changes to debugging code in mutex_unix.c and mutex_w32.c to make an assert() statement threadsafe.
...
FossilOrigin-Name: e82e32bd431ccacd276df8241592eb5519d87122
2010-08-10 07:12:26 +00:00
dan
de5fd22f3d
Modify some comments in pager.c.
...
FossilOrigin-Name: 5662da6d4f648e5d07d7cbea6bbd92fa684c02c9
2010-08-09 19:17:29 +00:00
dan
5a26383ab7
Merge latest trunk changes with experimental branch.
...
FossilOrigin-Name: aecbd890327dc676d6c2366b07f3d2e636a4983e
2010-08-09 16:52:12 +00:00
dan
5198bead7a
Fix a memory leak in test_journal.c causing tests to fail.
...
FossilOrigin-Name: f229487cccc7514b2663e8e6e04798702c9cfb10
2010-08-09 16:12:51 +00:00
drh
9b8d02727a
Fix typos in comments. No functional changes to the code.
...
FossilOrigin-Name: 9cebaf2dca6dc35e489537fe7c55474e1029a98e
2010-08-09 15:44:21 +00:00
dan
ec561a351a
Change to tcl test infrastructure so that --malloctrace=1 works when sizeof(int)!=sizeof(void*).
...
FossilOrigin-Name: c3e771b3cf685f4237a2516ee7111849bf0ffb3f
2010-08-09 14:47:50 +00:00
drh
f053d5b6c7
Fix two comment typos that were reported on the mailing list.
...
FossilOrigin-Name: 88bf9016277c133dfbf4f4b2be0c35c9fe9fabd6
2010-08-09 14:26:32 +00:00
dan
007820d65d
Fix a problem causing the return code of an xSync call to be ignored in wal.c.
...
FossilOrigin-Name: f1b2b5f9c3a5561ea6108283ae08404106c3f8bc
2010-08-09 07:51:40 +00:00
dan
7a76197f40
In WAL mode, ignore any error returned by an xFileControl(FCNTL_SIZE_HINT) call. This matches the behaviour in rollback mode.
...
FossilOrigin-Name: 158a309737bd4cdc033cd504a6d0cc43c15b6e17
2010-08-09 07:07:37 +00:00
dan
73d66fdb22
Fix minor problems and update comments in pager.c.
...
FossilOrigin-Name: 92e456374b052aceff356d10317b5b94fcdeaa5c
2010-08-07 16:17:48 +00:00
dan
e5953ccdb2
Fix a problem wherein changing the journal-mode immediately after leaving exclusive-locking mode could lead to the database being unlocked without clearing the changeCountDone flag.
...
FossilOrigin-Name: 531abc808526d607768bf6f503268d4cc66ab169
2010-08-07 09:31:14 +00:00
dan
16f7720ede
Add test case 'cgt_pager_1', intended for use with callgrind to detect performance regression in the pager module, to threadtest3.c.
...
FossilOrigin-Name: b5d46f1ea08db2b88d2205bc283b9262ad970b55
2010-08-07 05:15:22 +00:00
drh
c78db070a3
Remove all vestiges of ctype.h from FTS3.
...
FossilOrigin-Name: b8b465ed2c56b23b50334680a2a940885b1ac530
2010-08-06 19:00:12 +00:00
dan
85d14ed238
Further enhancements to comments in pager.c.
...
FossilOrigin-Name: 876162c7e036af1cb447409b685afc72c0061a32
2010-08-06 17:18:00 +00:00
dan
4f7b8d6260
Fix some problems with running test scripts with the inmemory_journal permutation.
...
FossilOrigin-Name: 7bd8ba084e75bcd5c744e1d4a1812df3a4d91887
2010-08-06 14:37:13 +00:00
dan
5db5640185
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: aef6698c732f3f9e46986f53e63ca2bdf5f7d208
2010-08-06 13:53:09 +00:00
dan
cb79e5137c
Do not run some tests in notify3.test with the inmemory_journal permutation. They do not pass as the tests assume that the database schema is not loaded until the first invocation of [db eval]. This is not true with the inmemory_journal permutation.
...
FossilOrigin-Name: 698fba826e40ce6414cf6c261441d68b174c1637
2010-08-06 13:50:07 +00:00
dan
de1ae34eed
Further updates to comments in pager.c.
...
FossilOrigin-Name: 5f4c17a33fd442d66c1bf75af9b21954f6906897
2010-08-06 12:00:27 +00:00
dan
dc1106148a
Modify test_journal.c to work with pre-allocated databases.
...
FossilOrigin-Name: 4894a5d21044b169f412fef095e689cb8a8575dc
2010-08-06 09:43:03 +00:00
dan
11f47a9b4e
Fix a bug to do with deleting the journal file when exiting exclusive-locking mode.
...
FossilOrigin-Name: 6217b607f0cd60383c6cb4ab0fe9da008f611244
2010-08-06 06:54:47 +00:00
drh
3bb9b93f1f
Change two automatic array variables into static constant arrays.
...
Update and reformat some comments for cleaner presentation.
FossilOrigin-Name: a7a15547cccb4aeb719aba19641f31390c316d8c
2010-08-06 02:10:00 +00:00
dan
54919f8238
Add comments describing UNKNOWN_LOCK to pager.c. Improve some other comments i the same file.
...
FossilOrigin-Name: 54eff6de9d8d87f33192c192ca91907c4c090988
2010-08-05 18:53:26 +00:00
dan
4557b92cdb
Merge trunk changes with experimental branch.
...
FossilOrigin-Name: acd26b8b746980c344db017a0e96dbd92c89acdf
2010-08-05 16:22:49 +00:00
dan
5761dbe4a3
Catch an error code that was not being propagated back to the caller.
...
FossilOrigin-Name: 800f496929fb0d45d16c573c5dca0197ac922e2b
2010-08-05 16:08:26 +00:00
dan
4e004aa6b9
Fixes for error handling with temp databases. And for errors that occur within OS locking primitives.
...
FossilOrigin-Name: f99a902f9b3d0bf6f607c4ba641b4096fbbef5d5
2010-08-05 15:30:22 +00:00
drh
f6171e9bae
Make the size of a Bitvec object 512 bytes on all platforms, instead of
...
having the size depend on the size of a pointer. This makes testing easier.
FossilOrigin-Name: ca479f3de2927ccc05dc76d10e40c00b8e0c88d1
2010-08-05 11:56:01 +00:00
drh
b9b49bf36b
Do not read the database file size on a SAVEPOINT rollback any more since
...
after checkin [65b8636ac6e5] the in-header-size field is always valid.
FossilOrigin-Name: fbe70e1106bcc5086ceb9d8f39cc39baf3643092
2010-08-05 03:21:39 +00:00
drh
aa0ba4345d
Fix the query planner so that when it has a choice of full-scan tables to
...
move to the outer loop, it chooses the one that is likely to give the fewest
output rows.
FossilOrigin-Name: 309bbedf9648c750d7b8aedbc15d4fd68f846824
2010-08-05 02:52:32 +00:00
drh
5e377d90ed
If the outer loop of a join must be a full table scan, make sure that an
...
incomplete ANALYZE does not trick the planner into use a table that might
be indexable in an inner loop. Ticket [13f033c865f878]
FossilOrigin-Name: e7a714b52c45af096af74049826d32c647abfe3f
2010-08-04 21:17:16 +00:00
dan
431b0b4291
Fix some problems with error recovery introduced while reworking pager state.
...
FossilOrigin-Name: 77eaab6f77c53cc4f429b65dfcf287ad6084c2da
2010-08-04 19:14:22 +00:00
dan
59257dc615
When opening a write-transaction on a database file that has been appended to or truncated by a pre-3.7.0 client, update the database-size field in the database header. Fix for [51ae9cad31].
...
FossilOrigin-Name: 65b8636ac6e5d3e4502d4f576ddf9350d5df3022
2010-08-04 11:34:31 +00:00
dan
d5e0101be0
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: 15368a9f8523d5fb611cd576080daed2cf2f1500
2010-08-03 18:29:04 +00:00
dan
a42c66bdfb
Set the Pager.eState variable to PAGER_ERROR whenever the pager enters the error state.
...
FossilOrigin-Name: 4d384761d27425b71555f4f3262778277a955835
2010-08-03 18:18:41 +00:00
drh
a3e414cd48
Fix disabled implementation-mark comments in func.c.
...
FossilOrigin-Name: 57c0960038b8ce97f9d6665f15e7f6ec310c681f
2010-08-03 18:06:25 +00:00
dan
b22aa4a63d
Add comments to clarify the purpose of the pager "error state".
...
FossilOrigin-Name: fde4c59782e98366792e1552fd122e7d80a277ff
2010-08-03 15:57:09 +00:00
drh
6dc8490232
Fix the REPLACE conflict resolution so that it falls back to ABORT when
...
a CHECK constraint fails. Ticket [c38baa3d969eab794].
FossilOrigin-Name: 4e157b774764b8bafc9fabb88decf54f178b5ff5
2010-08-03 13:08:54 +00:00
dan
937ac9da38
Add state diagram to comments in experimental version of pager.c.
...
FossilOrigin-Name: 16dcf5a6d3ebff9a734705693b5ac740f4ff2cc1
2010-08-03 12:48:45 +00:00
dan
763afe62e1
Incremental checkin on pager state refactoring.
...
FossilOrigin-Name: 0a636798bdb6961a47327091715b254f79add823
2010-08-03 06:42:39 +00:00
dan
d08640871c
Experimental refactoring of the Pager object state.
...
FossilOrigin-Name: 03a240514aa07a22db787d221641253f23933e88
2010-08-02 14:32:52 +00:00
drh
9e5f10743d
Modify wal2.test to disable tests requiring TCL 8.5 if the test harness is
...
compiled using TCL 8.4.
FossilOrigin-Name: 016486c7d544dcf9b7422cb0fb9804aa1c418f68
2010-08-02 10:59:13 +00:00
dan
a550f2decd
In shared-cache mode, do not allow one connection to checkpoint a database while a second connection is reading or writing the same shared-cache.
...
FossilOrigin-Name: e75b52d156905ce16bedb94f65c01a4640bdfa75
2010-08-02 10:47:05 +00:00
drh
1c320a4366
Fix a typo in an error message of the TCL interface.
...
FossilOrigin-Name: 8eadd7b87bfe8786e0352ca14b29d1451998c02c
2010-08-01 22:41:32 +00:00