danielk1977
369f3a050c
Remove an assert() statement that may not be true if an IO or malloc error has occured. (CVS 4037)
...
FossilOrigin-Name: 16c8e9c20cd2a7628c20a31c3e9605fe2d92ba2e
2007-05-24 09:41:20 +00:00
danielk1977
2df71c742c
Fix an assert() failure occuring in corrupt.test. (CVS 4034)
...
FossilOrigin-Name: 3c54cddf23e3b9f62815d1b825110563f78cc325
2007-05-24 07:22:42 +00:00
drh
6fa51035c3
Fix a typo in a comment. Ticket #2348 . (CVS 3966)
...
FossilOrigin-Name: c0dbac46301039246afd4bebb71dd8184fc5c0c7
2007-05-09 20:35:31 +00:00
danielk1977
de3bea7ba4
Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964)
...
FossilOrigin-Name: e8e879aca67dee959bab42627028964c474da72f
2007-05-09 15:56:39 +00:00
drh
87cc3b3180
Remove compiler warnings in the amalgamation. (CVS 3960)
...
FossilOrigin-Name: c5754530c6b1a8151c558f33d27fed70c95a988b
2007-05-08 21:45:27 +00:00
drh
f8e632b630
Add the max_page_count pragma used to limit the maximum size of a database
...
file. Untested. (CVS 3948)
FossilOrigin-Name: b1b74f06688fd90fcaf54cf95e2e7beeb5fc1040
2007-05-08 14:51:36 +00:00
drh
a315289571
Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from
...
util.c. Expect much more to follow. (CVS 3925)
FossilOrigin-Name: 16041116aaaa2d52a289aa02a24bef579ba60896
2007-05-05 11:48:52 +00:00
drh
5bb3eb9b9a
Eliminate all uses of sprintf() and strcpy(). These were not being
...
misused. But getting rid of them removes a library dependency. And
it avoids warnings from the OpenBSD compiler. Ticket #2336 . (CVS 3916)
FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
2007-05-04 13:15:55 +00:00
drh
126afe6b59
Fix a formatting errror in I/O logging. (CVS 3914)
...
FossilOrigin-Name: 2d37687a08a7b6b3a7f77f55a7c2e29a1f8731a8
2007-05-04 12:01:02 +00:00
drh
ae5e445b34
Improvements to I/O tracing output. Require -DSQLITE_ENABLE_IOTRACE when
...
compiling shell.c in order to link in the I/O tracing capability. (CVS 3909)
FossilOrigin-Name: 8a43e1676fdd29903e0b3f9d3b05d217d42962b8
2007-05-03 17:18:36 +00:00
drh
c80f058db3
The pager takes the sector size to be the larger of the sector size
...
reported by sqlite3OsSectorSize() and the page size. (CVS 3890)
FossilOrigin-Name: e5e6af55ccc5c1a8a9206b42f1dd7bf547cb97ca
2007-05-01 16:59:48 +00:00
danielk1977
b4626a3e16
Add some tests (and 2 resulting bug fixes) to incr vacuum mode. (CVS 3885)
...
FossilOrigin-Name: 89b1b3f897bda1fffceb9cf72fa4d42b809ccb8e
2007-04-28 15:47:43 +00:00
drh
d33d5a8978
In the pager, load the content of pages which were initialized with
...
noContent==1 if they are subsequently requested with noContent==0. (CVS 3875)
FossilOrigin-Name: d0745a43b6e037d16e1ec38c7c4d961a80d1ef48
2007-04-26 12:11:28 +00:00
drh
86a88114fa
Detect database file changes using a 128-bit segment of the file header
...
that includes the change counter. Ticket #2303 . (CVS 3844)
FossilOrigin-Name: e44995debf2456e55b502783849e93a045a527c8
2007-04-16 15:02:19 +00:00
drh
d215acf1f4
Fix a bug in autovacuum introduced by (3839). (CVS 3841)
...
FossilOrigin-Name: e39efa195a28f1cd7431b0811bd908dc7af3c8b1
2007-04-13 04:01:58 +00:00
drh
538f570cd1
Fix multiple performance regressions (ticket #2298 among them)
...
and add tests to make sure they do not come back. (CVS 3839)
FossilOrigin-Name: 32bb2d5859906b4fb0f6083eedd7f3a81b9cf5e2
2007-04-13 02:14:30 +00:00
danielk1977
9038bb647f
Have the pager call xReiniter() instead of xDestructor() to restore btree level state after rolling back a page. (CVS 3828)
...
FossilOrigin-Name: 4e8941333ef053442877a2a696a2c68d403c7f4d
2007-04-09 11:20:54 +00:00
danielk1977
f35843b578
For filesystem databases, do not store a list of pages in the statement journal in main memory. (CVS 3825)
...
FossilOrigin-Name: 0af764a02695281b0a7d70ef4e7f8229fd3d6a30
2007-04-07 15:03:17 +00:00
drh
bb5f18d2ca
Additional coverage testing. (CVS 3823)
...
FossilOrigin-Name: 26b2e1aede3f776134b2d6e941d17a907843e650
2007-04-06 18:23:17 +00:00
danielk1977
e180dd9396
Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814)
...
FossilOrigin-Name: 9dc4100eff71be579480ce7939c7da712d28f0ae
2007-04-05 17:15:52 +00:00
danielk1977
38ec0cb263
Use the MEMDB macro instead of OMIT_MEMORYDB in pager_recycle(). (CVS 3813)
...
FossilOrigin-Name: 97c5159816e211d9c71aa68db7c5e01df535d6a4
2007-04-05 14:29:42 +00:00
danielk1977
c551edc2c3
Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812)
...
FossilOrigin-Name: c20f7563c0ffa1df47df5464f1f1cc4703ffa9b4
2007-04-05 13:12:13 +00:00
danielk1977
5bb16fe41b
Add some assert() statements to pager.c. (CVS 3811)
...
FossilOrigin-Name: 973b2a5fb56a1ed1fd10d062edcb6e6dad13f001
2007-04-05 11:54:42 +00:00
drh
7c4ac0c555
Improvements to coverage testing. (CVS 3810)
...
FossilOrigin-Name: 38af156da83a8469080ddb75a9a286be33ff6bef
2007-04-05 11:25:58 +00:00
danielk1977
3997b9bb6b
Catch an IO error case introduced by (3808). (CVS 3809)
...
FossilOrigin-Name: 383a08e26083964e79bfe22156f5f554522fa1fb
2007-04-05 08:40:32 +00:00
danielk1977
2026cefaf8
Zero cached pages located beyond the end of the file before returning them. Ticket #2285 . (CVS 3808)
...
FossilOrigin-Name: 5180810eeaa3dfe3d934af0732a920ae117ec69f
2007-04-05 05:46:14 +00:00
drh
01fa4c349f
If an IO error is encountered on a commit, close the journal so that it
...
persists and can (hopefully) rollback the failed transaction later. (CVS 3792)
FossilOrigin-Name: 22e10cc24e4407feb276abfa8cc9964f20c6e54a
2007-04-02 11:22:22 +00:00
danielk1977
08d31a2a6d
Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791)
...
FossilOrigin-Name: 4d8c6bf44ec00ec04e615983cb33425ca2c3998a
2007-04-02 11:08:58 +00:00
danielk1977
241687280b
Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790)
...
FossilOrigin-Name: ba0538a4977aefd6645554f1989f0a98b540b9cd
2007-04-02 05:07:47 +00:00
drh
61fc595fdd
Fix some warnings about unused and uninitialized variables. (CVS 3788)
...
FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
2007-04-01 23:49:51 +00:00
danielk1977
393f068912
More coverage for pager.c. (CVS 3778)
...
FossilOrigin-Name: 665b119a241a5a95f236b3ace1b25fc18ae6f0a3
2007-03-31 10:00:48 +00:00
drh
4f0ee686c5
Remove vestiges of the SQLITE_PROTOCOL error. (CVS 3773)
...
FossilOrigin-Name: 6dfd4a12a8a03c204505e7a211e179b7dd47e4fb
2007-03-30 20:43:40 +00:00
drh
1abd422d99
Remove asserts on the existing of journal files in pager - asserts that
...
are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769)
FossilOrigin-Name: f5fad52a97a16faddc2701ea0e05a301974eda1a
2007-03-30 17:18:50 +00:00
drh
369339db34
Always enable exclusive access mode for TEMP databases. This cannot be
...
changed. The locking_mode pragma has not effect on the TEMP database. (CVS 3766)
FossilOrigin-Name: 04d3b9098ed06d5be24253edde50ea61b4641df8
2007-03-30 16:01:55 +00:00
drh
3cdd7d37c6
Tease apart the two phases of pager commit. (CVS 3763)
...
FossilOrigin-Name: e5f17078a28b6a47d6943d40c526390c36258392
2007-03-30 14:46:01 +00:00
drh
80e35f4640
Refactoring the btree and pager routines into distinct two-phase commit
...
routines. We've always done a two-phase commit - this change is just
making that more apparent in the code. (CVS 3762)
FossilOrigin-Name: 66b3ad09ea657d25d48cb75ec2671ea2dc1b6005
2007-03-30 14:06:34 +00:00
drh
3ceeb75680
Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make
...
the new OS-layer interface routine for finding sector size optional. (CVS 3750)
FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
2007-03-29 18:19:52 +00:00
danielk1977
7152de8dd2
Avoid calling OsDelete() on journal files when they are opened for temporary databases. Fix for #2255 . (CVS 3748)
...
FossilOrigin-Name: e746832f5f3e1c58e6f6456866156824d23dd846
2007-03-29 17:28:14 +00:00
drh
600e46a021
Fix an memory allocation error revealed by malloc3.test. (CVS 3733)
...
FossilOrigin-Name: 0f7fdb022ca7c94f7d264192e18b6e2bd1e8cff4
2007-03-28 01:59:33 +00:00
danielk1977
3dedc1985e
Remove a c++ comment in pager.c. (CVS 3730)
...
FossilOrigin-Name: e4452e8aede9282feaeeac19d0cdf82b01c3cc19
2007-03-27 17:37:31 +00:00
danielk1977
979f38e5ee
Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729)
...
FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
2007-03-27 16:19:51 +00:00
drh
cf64372910
More strict aliasing fixes. The single source file library now runs
...
successfully with -fstrict-alias. (CVS 3725)
FossilOrigin-Name: c8a8a189a82500aab501e9949f5b197c0b80b3a9
2007-03-27 13:36:37 +00:00
drh
4f0c587819
Modify sources to that they can be combined into a single sqlite3.c source
...
file. Eliminate all type-pruned pointer warnings. (CVS 3722)
FossilOrigin-Name: 0b832e218ec12b0eb559e407d80aba6709e2ea85
2007-03-26 22:05:01 +00:00
danielk1977
c7c7e623a9
Discard the pager-cache when the page-size is changed. (CVS 3719)
...
FossilOrigin-Name: e4209f7193d160709b0d8b5cd358df5649a97dc0
2007-03-26 15:46:00 +00:00
drh
e4dd73b4fa
Avoid unnecessary calls to pager_unwritelock() when in exclusive-access mode.
...
Add the speed2.test script to the test suite. (CVS 3718)
FossilOrigin-Name: ab53f5086334ea2f6c20c8f9d043baff39fae8d7
2007-03-26 13:48:12 +00:00
danielk1977
c5859718af
Run some malloc() tests with exclusive-access mode. (CVS 3717)
...
FossilOrigin-Name: 127454903764daff17390941a002f527ee2ffc87
2007-03-26 12:26:27 +00:00
danielk1977
ded6f4b2fe
Add some tests and fixes surrounding exclusive-access mode and the pager change-counter. (CVS 3716)
...
FossilOrigin-Name: 72cb2e1a73cd09d32900bb473377f66ff55058fb
2007-03-26 10:27:18 +00:00
danielk1977
334cdb63b0
Some fixes and test cases for exclusive access mode. (CVS 3714)
...
FossilOrigin-Name: 899e60707bea0fabab2ff3ac8a3fbb676a539120
2007-03-26 08:05:12 +00:00
danielk1977
414834686c
Changes for exclusive access mode. There are still some bugs. (CVS 3712)
...
FossilOrigin-Name: b6c700370be29db2b974f9abd719c3e56abf8058
2007-03-24 16:45:04 +00:00
danielk1977
e277be0545
Discard the contents of the pager-cache only when the change-counter indicates that it is stale. (CVS 3711)
...
FossilOrigin-Name: 07b56965f3227c9f78680728b955395295c4aa49
2007-03-23 18:12:06 +00:00