drh
da57895fec
Disable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS 4306)
...
FossilOrigin-Name: 741d6fb096dcb232871d3a8468c386022afcf554
2007-08-27 23:48:23 +00:00
drh
4bfc8a97f9
Fix the autoconf makefile with all the latest changes. (CVS 4305)
...
FossilOrigin-Name: bc6d73d015327a9cf6b687aaf4b3f0d07e0fd484
2007-08-27 23:38:43 +00:00
drh
46c99e0f5d
Work around problem with forward declarations of constants in MSVC
...
in the amalgamation. Ticket #2574 . (CVS 4304)
FossilOrigin-Name: dc80b2e1f4e1d31479aad9f39e651e62f2601fb8
2007-08-27 23:26:59 +00:00
drh
97c8ec325d
Bring the amalgamation builder up to date with the latest changes.
...
Remove some vestigial code. (CVS 4303)
FossilOrigin-Name: 0ae30e5c76d9094307ea086a9993a953631ab9da
2007-08-27 21:49:34 +00:00
drh
50d3f9064b
Added the 34to35.html document describing the changes between 3.4.2 and
...
3.5.0. Minor interface cleanups. (CVS 4302)
FossilOrigin-Name: 0791f917bb18d7305b805b9cbcb308bdd7b3a1f5
2007-08-27 21:10:36 +00:00
danielk1977
9f61c2f129
Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301)
...
FossilOrigin-Name: 5626ce0b5e249d48b56fdc4561ef663941eb23dc
2007-08-27 17:27:49 +00:00
drh
4b6b4ab0d2
Create a fresh pthread_mutexattr_t every time a recursive mutex is
...
allocated. Ticket #2588 . (CVS 4300)
FossilOrigin-Name: 3d746343add3feb9d208302a00b419d71d6ba246
2007-08-25 16:31:29 +00:00
drh
8bacf9743f
Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)
...
FossilOrigin-Name: 7289079d6b4a7a160063e34c0f5e43637ef7476f
2007-08-25 16:21:29 +00:00
drh
f77a2ff5dc
Clarification in the documentation of the sqlite3_mutex_held() and
...
sqlite3_mutex_notheld() interfaces. Make it clear that these routines
are only for use inside assert(). (CVS 4298)
FossilOrigin-Name: a6bbf6eaf6ccc471b4efe02cd8a3971112d909ab
2007-08-25 14:49:36 +00:00
drh
058897a92e
Use recursive mutexes in pthreads. If the pthreads implementation does not
...
support recursive mutexes, then you cannot compile SQLite with
SQLITE_THREADSAFE=1. Ticket #2588 . (CVS 4297)
FossilOrigin-Name: 1668284d151e78d16b0d83bf55dfd9d349a452a7
2007-08-25 14:39:45 +00:00
danielk1977
222a757dba
Update the rest of the malloc failure test scripts to use the new interface. (CVS 4296)
...
FossilOrigin-Name: b076e1655d6bae5ae10e6ceee646f502435da66a
2007-08-25 13:37:48 +00:00
danielk1977
cdc3a6bcbc
Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
...
FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315
2007-08-25 13:09:26 +00:00
danielk1977
df7ca22abb
Update the async2.test test script to use the new malloc() failure simulation interface. (CVS 4294)
...
FossilOrigin-Name: 686fcfeda407c29cdb51fe814da616f1ccac5414
2007-08-25 12:39:28 +00:00
danielk1977
0e87b70100
Make the test_async backend work again. (CVS 4293)
...
FossilOrigin-Name: 04167483aad42d319393e8caf470d8de11e468d8
2007-08-25 12:29:30 +00:00
drh
dc3060fea3
Bug fix in the implementation of recursive mutexes using non-recursive
...
pthreads mutexes. Ticket #2588 . (CVS 4292)
FossilOrigin-Name: 7d24c3a5a7641df2bbb8c91a0bc5aa75c96a73fe
2007-08-25 03:59:08 +00:00
drh
bff101efd7
New mutex implementation for both Unix and windows. (CVS 4291)
...
FossilOrigin-Name: e144b81f699ca991cc4fa12a487156391db0b367
2007-08-24 20:46:59 +00:00
rse
e806566248
fix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean', too (CVS 4290)
...
FossilOrigin-Name: 3c908648353a575c3ff57be5dd9454a946d23b9f
2007-08-24 18:32:58 +00:00
drh
b11caac316
Rework the win32 OS driver to use malloc()/free() directly rather than
...
going through the SQLite memory allocation layer. With this change, the
complete quick.test script now runs on windows. There are a few errors,
but no segfaults. Progress. (CVS 4289)
FossilOrigin-Name: 75aad316981690d7a93ea6ac1c187f7d98f6d715
2007-08-24 17:52:21 +00:00
drh
ae28c01aa8
Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)
...
FossilOrigin-Name: 300038be9368556a29efce7cf3657fabfe54d8f9
2007-08-24 16:29:23 +00:00
drh
1cc8c448b5
Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the
...
sqlite3_vfs_release() interface. Less memory allocated for a pager
in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287)
FossilOrigin-Name: b8451da378179d43f25d9a014480c0f13dd1dc37
2007-08-24 16:08:29 +00:00
danielk1977
9663b8f92d
Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286)
...
FossilOrigin-Name: 13dda2e8e879835c21e539ba3ff8f96face1af4c
2007-08-24 11:52:28 +00:00
drh
f78799e637
Remove unnecessary sqlite3MallocDisallow() that was preventing win32 from
...
running. (CVS 4285)
FossilOrigin-Name: eb6c98fc1097b327453d7e8ec8877101ea8187c3
2007-08-24 11:43:36 +00:00
danielk1977
f55b899824
Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284)
...
FossilOrigin-Name: bdf5cb8d25d93d48220ce46acad2ccf967a87843
2007-08-24 08:15:53 +00:00
drh
d5499d648f
Bug fix in the memory leak trace output. (CVS 4283)
...
FossilOrigin-Name: a1b495c28a092c7eb79ffeeb6a217749acb4c12c
2007-08-24 04:15:00 +00:00
drh
153c62c461
The win32 driver compiles but does not yet work well. Many bugs
...
fixed. (CVS 4282)
FossilOrigin-Name: 3a68fcddfa9184e4b310ce0a21312c54b9462ec8
2007-08-24 03:51:33 +00:00
shess
bae37537b0
Make comments and variable naming more consistent WRT rowid versus
...
docid/blockid. This should have no code impact. (CVS 4281)
FossilOrigin-Name: 76f1e18ebc25d692f122784e87d202992c4cfed2
2007-08-23 20:28:49 +00:00
shess
6beeb0329a
Fix fts3 to not have the VACUUM bug from fts2. %_content.docid is an
...
alias to fix the rowid for documents, %_segments.blockid is an alias
to fix the rowid for segment blocks. Unit test for the problem. (CVS 4280)
FossilOrigin-Name: 6eb2d74a8cfce322930f05c97d4ec255f3711efb
2007-08-23 20:23:37 +00:00
danielk1977
6897ca30b5
Add some warm-body tests for rollback journal i/o enhancements. (CVS 4279)
...
FossilOrigin-Name: ff3770f855c1dd75025b1f2496f8c75e9f17ee44
2007-08-23 16:27:21 +00:00
danielk1977
4cd2cd5c69
Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278)
...
FossilOrigin-Name: 595568492e63822caed5b6970542dcee4615dc4d
2007-08-23 14:48:23 +00:00
danielk1977
863c0f9b87
Ensure temporary files are deleted when they are closed. (CVS 4277)
...
FossilOrigin-Name: cf4e3c158aa71afc91f263a314c2e750d191fb41
2007-08-23 11:47:59 +00:00
danielk1977
f8940aefb6
Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276)
...
FossilOrigin-Name: 5f0fb894f44069c4aa9b8dba62b4d8a262c991de
2007-08-23 11:07:10 +00:00
danielk1977
2ca0f86354
Add some tests for the atomic-write optimization. (CVS 4275)
...
FossilOrigin-Name: e2cc7b4a3476a733b2701546f6b4ec9abc18152b
2007-08-23 08:06:44 +00:00
drh
aa9f112137
Change names of constants in lemon.c to work around name conflicts
...
on Solaris. Ticket #2583 . (CVS 4274)
FossilOrigin-Name: e4e74cd0f9343448ea38e57f08bb4f0616825f31
2007-08-23 02:50:56 +00:00
drh
4a50aac564
Improvements to memory leak detection. The --backtrace=NNN option is now
...
recognized by tester.tcl. Memory leak summaries are automatically written
to the file ./memleak.txt and each leak is tagged with the test in which
it occurred. The quick.test script runs on Linux with no errors and
no leaks. (CVS 4273)
FossilOrigin-Name: 21f6b31097692171c6493e6ca6de6acbd62dc595
2007-08-23 02:47:53 +00:00
drh
ed138fb3bc
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
...
FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2
2007-08-22 22:04:37 +00:00
drh
f3a65f7e44
The malloc.test script now passes all tests with no errors. (CVS 4271)
...
FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
2007-08-22 20:18:21 +00:00
danielk1977
dd97a49c1a
Fix a bug in the logic for journaling pages when the device sector-size is greater than the page size. (CVS 4270)
...
FossilOrigin-Name: b6399dff1370449912391cc5925bdc468b5dade0
2007-08-22 18:54:32 +00:00
drh
cab5ed7a57
Get the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)
...
FossilOrigin-Name: 1f28b7e47bba221c14a10a37e7425c9975bb2312
2007-08-22 11:41:18 +00:00
danielk1977
c7b6017c8a
Add code for the atomic-write optimisation. Disabled by default. (CVS 4268)
...
FossilOrigin-Name: 581fadfe31757e3fb97b12f93c1e3c085e4b6009
2007-08-22 11:22:03 +00:00
drh
1f12f9aa30
Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267)
...
FossilOrigin-Name: 6cc8641ed2fbfc32d418ce153f2819052f230be2
2007-08-22 02:57:16 +00:00
drh
27641703cc
A complete run of quick.test with mutex debugging enabled. (CVS 4266)
...
FossilOrigin-Name: 783e07d561d1f5509de9475f3b9f38315f247002
2007-08-22 02:56:42 +00:00
drh
86f8c197dd
Reenable the memory management logic. The quick.test script now runs with
...
SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265)
FossilOrigin-Name: 1914044b8832041f13b20ead613bd13725425d7a
2007-08-22 00:39:19 +00:00
drh
32bc3f6e01
All mutexing and locking appears to be in place. Now we just have to
...
test it and make it all work. (CVS 4264)
FossilOrigin-Name: 0f7941aef976aa4f3be3e0046edd1ae042e5d9a3
2007-08-21 20:25:39 +00:00
drh
b21c8cd4f6
The sqlite3_value object now carries an sqlite3* pointer to use for
...
recording malloc failures. This eliminates the need to pass sqlite3*
pointers into many internal interfaces. Also added more mutexing. (CVS 4263)
FossilOrigin-Name: 9287276191a582c1cf7cf6b71d8399727d8e534d
2007-08-21 19:33:56 +00:00
drh
e30f442622
Adding more thread locking code. This is an incremental check-in. (CVS 4262)
...
FossilOrigin-Name: 7428732b1fa04b83eda0a3539834693ef351313e
2007-08-21 16:15:55 +00:00
drh
605264d2d8
Readded the sqlite3_open_v2() interface. No test cases yet.
...
Additional progress toward adding mutexes to all interfaces. (CVS 4261)
FossilOrigin-Name: 3787563e90d7210d349ee36484c3f008c955552e
2007-08-21 15:13:19 +00:00
danielk1977
7a2b1eeb7f
Delay opening temporary pager files until they are first written. (CVS 4260)
...
FossilOrigin-Name: 3fb97a63ef70662abdba18ce8b480e6b0badcfb1
2007-08-21 14:27:01 +00:00
drh
51fc347a2e
Remove the obsolete static mutexes. Use only the lastest static mutex code. (CVS 4259)
...
FossilOrigin-Name: 6225cd461cdd2132eeb480aa4deb8986b7f63c15
2007-08-21 13:51:23 +00:00
danielk1977
46abae817e
Add the tests that go with the previous commit. (CVS 4258)
...
FossilOrigin-Name: a87f32e13e91250ab4d9366d2e9a3a7024a12fb9
2007-08-21 13:30:07 +00:00
danielk1977
6e465eb0fc
Avoid journalling an extra page when a btree insert operation uses the 'quick-balance' trick. (CVS 4257)
...
FossilOrigin-Name: 0da48209140b6c1ba47df799ce6065054b994f02
2007-08-21 13:11:00 +00:00