dan
|
5a9e07eb40
|
Disable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536). Fix some other problems in test files.
FossilOrigin-Name: 56cc883d3af5574c9dafecef8aa96d1d05c01b83
|
2010-08-18 15:25:17 +00:00 |
|
shaneh
|
1df2db7fd1
|
Fix some compiler warnings in the MSVC build.
FossilOrigin-Name: 1f5662b7db5d623c8d99c45a8d97a0aa4427593f
|
2010-08-18 02:28:48 +00:00 |
|
drh
|
89bd82ae9d
|
Remove a NEVER() that is actually reachable.
FossilOrigin-Name: acb171d4cfef2fec8833f761019f5c81f0d138a0
|
2010-08-17 19:49:14 +00:00 |
|
drh
|
43b18e1e55
|
Suppress harmless compiler warning.
FossilOrigin-Name: 3f8c068a41b01f59d7f5d56f3bced78587f4d26c
|
2010-08-17 19:40:08 +00:00 |
|
dan
|
c8d735aed3
|
Return an error when parsing "?NNN" if NNN is so large it cannot be stored as a 32-bit int.
FossilOrigin-Name: fc9014be0f00d046e7ba830a644f9ce93eca5db8
|
2010-08-17 19:34:13 +00:00 |
|
drh
|
0028486b73
|
It is no longer possible to reach pagerStress() while in the error state,
so put a NEVER() around the error state test of that routine.
FossilOrigin-Name: d7ed463496c4474cc435d032874a4e55d780e74a
|
2010-08-17 18:37:12 +00:00 |
|
dan
|
a81a2207a3
|
If an SQLITE_FULL error occurs during rollback or journal finalization, treat it in the same way as SQLITE_IOERR (i.e. require that the pager internals be completely reset before it is next read from or written to).
FossilOrigin-Name: 8ac185236e766becdac7248c1ba3dfa42a9464b1
|
2010-08-17 18:15:48 +00:00 |
|
drh
|
719e3a7a57
|
Changes to pager for improved testability.
FossilOrigin-Name: 61c64b3aeb027fcc9c25591d6b9048ac7850ad3d
|
2010-08-17 17:25:15 +00:00 |
|
dan
|
eb8763d7b3
|
Invoke sqlite3_log() whenever one or more frames are recovered from a WAL file.
FossilOrigin-Name: e05089aaefe02ec59a1923812349471a78075d29
|
2010-08-17 14:52:22 +00:00 |
|
dan
|
fc6a621a96
|
Fix some non-ANSI C code in test_demovfs.c. Also change the same file so that attempting to delete a file that does not exist does not return an error.
FossilOrigin-Name: 07570ce38051a05d6e8a71e39766850f6719ac07
|
2010-08-17 05:55:35 +00:00 |
|
drh
|
919fc66ea7
|
Remove an superfluous branch from pager.c.
FossilOrigin-Name: 4271a95c8236bda4a4f8c02bf3a3560de1d00402
|
2010-08-16 20:02:09 +00:00 |
|
drh
|
6cef0cf7a9
|
Fix a typo in a comment in wal.c. No code changes.
FossilOrigin-Name: d854a3d41c68f785c909c159cd9ca2154c64001a
|
2010-08-16 16:31:43 +00:00 |
|
drh
|
7e9e70b170
|
Add ALWAYS() macros in wal.c to cover branches that are no longer reachable
following the pager refactoring.
FossilOrigin-Name: 24f24c927c77bb3bb4d26a23dd5d94f964db8033
|
2010-08-16 14:17:59 +00:00 |
|
drh
|
9b78f79183
|
Adjustments for better 64K page size handling.
FossilOrigin-Name: faf1974e2de321bfefb68b81d702ae69771933ef
|
2010-08-14 21:21:24 +00:00 |
|
drh
|
8fb8b53728
|
Change sqlite3PagerPagecount() to return void, since the return value was
always SQLITE_OK and was never used.
FossilOrigin-Name: 7dd78eb7974ec7c40af3fcf2b125ca5bc0766b5c
|
2010-08-14 17:12:04 +00:00 |
|
drh
|
5d433ce2ab
|
Minor simplifications to btree.c in support of full-coverage testing.
FossilOrigin-Name: 364df6c7735447cc2187923918a35bf62d82decc
|
2010-08-14 16:02:52 +00:00 |
|
drh
|
e5918c62e9
|
Tweaks to comments in pager.c. Fix two compiler warnings.
FossilOrigin-Name: 68a49f7fe382e4d36e1259cdeec956c942906ddb
|
2010-08-14 12:42:45 +00:00 |
|
dan
|
49ad330d67
|
Do not apply the flattening optimization if the sub-query is DISTINCT. Fix for [e4b8a2ba6e].
FossilOrigin-Name: 497aafd8ed6a636a8bd5fa2cad265a20593ee34f
|
2010-08-13 16:38:48 +00:00 |
|
dan
|
1879b088bd
|
If an error occurs in PagerSetPagesize(), set the output variable to the unmodified page-size before returning.
FossilOrigin-Name: 02def8f92588b8a45dff3976d1e7f9e3f0359b3b
|
2010-08-12 16:36:34 +00:00 |
|
dan
|
5653e4da36
|
Add coverage tests for pager.c.
FossilOrigin-Name: 228c5b16af80c22e97d9d4deb351e0d3f4523f89
|
2010-08-12 11:25:47 +00:00 |
|
drh
|
b2eced5de2
|
Increase the maximum page size from 32k to 64k.
FossilOrigin-Name: 45362437d491fbe0f033a67b398f8ba68cbf1b3b
|
2010-08-12 02:41:12 +00:00 |
|
dan
|
22b328b23c
|
Improve coverage of pager.c.
FossilOrigin-Name: 2fa05d01b6b11788a5b73d203fcac9d4a4ba9fd8
|
2010-08-11 18:56:45 +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 |
|
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
|
85d14ed238
|
Further enhancements to comments in pager.c.
FossilOrigin-Name: 876162c7e036af1cb447409b685afc72c0061a32
|
2010-08-06 17:18:00 +00:00 |
|
dan
|
5db5640185
|
Merge trunk changes into experimental branch.
FossilOrigin-Name: aef6698c732f3f9e46986f53e63ca2bdf5f7d208
|
2010-08-06 13:53:09 +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 |
|