]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoUse "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309)
danielk1977 [Tue, 28 Aug 2007 08:19:49 +0000 (08:19 +0000)] 
Use "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309)

FossilOrigin-Name: 4c5631ce347a25dd6df90e7e4395a55cd750c1c9

18 years agoAdd some comments and test-cases for the global lru page list (used by sqlite3_releas...
danielk1977 [Tue, 28 Aug 2007 08:00:17 +0000 (08:00 +0000)] 
Add some comments and test-cases for the global lru page list (used by sqlite3_release_memory()). (CVS 4308)

FossilOrigin-Name: 0b80168895993af5774369f839f284712d006f0a

18 years agoWork toward correct btree locking in a multithreaded environment. (CVS 4307)
drh [Tue, 28 Aug 2007 02:27:51 +0000 (02:27 +0000)] 
Work toward correct btree locking in a multithreaded environment. (CVS 4307)

FossilOrigin-Name: b8cc493b47e618648f645ab73eb0253739e03fcd

18 years agoDisable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS...
drh [Mon, 27 Aug 2007 23:48:23 +0000 (23:48 +0000)] 
Disable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS 4306)

FossilOrigin-Name: 741d6fb096dcb232871d3a8468c386022afcf554

18 years agoFix the autoconf makefile with all the latest changes. (CVS 4305)
drh [Mon, 27 Aug 2007 23:38:43 +0000 (23:38 +0000)] 
Fix the autoconf makefile with all the latest changes. (CVS 4305)

FossilOrigin-Name: bc6d73d015327a9cf6b687aaf4b3f0d07e0fd484

18 years agoWork around problem with forward declarations of constants in MSVC
drh [Mon, 27 Aug 2007 23:26:59 +0000 (23:26 +0000)] 
Work around problem with forward declarations of constants in MSVC
in the amalgamation.  Ticket #2574. (CVS 4304)

FossilOrigin-Name: dc80b2e1f4e1d31479aad9f39e651e62f2601fb8

18 years agoBring the amalgamation builder up to date with the latest changes.
drh [Mon, 27 Aug 2007 21:49:34 +0000 (21:49 +0000)] 
Bring the amalgamation builder up to date with the latest changes.
Remove some vestigial code. (CVS 4303)

FossilOrigin-Name: 0ae30e5c76d9094307ea086a9993a953631ab9da

18 years agoAdded the 34to35.html document describing the changes between 3.4.2 and
drh [Mon, 27 Aug 2007 21:10:36 +0000 (21:10 +0000)] 
Added the 34to35.html document describing the changes between 3.4.2 and
3.5.0.  Minor interface cleanups. (CVS 4302)

FossilOrigin-Name: 0791f917bb18d7305b805b9cbcb308bdd7b3a1f5

18 years agoModify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS...
danielk1977 [Mon, 27 Aug 2007 17:27:49 +0000 (17:27 +0000)] 
Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301)

FossilOrigin-Name: 5626ce0b5e249d48b56fdc4561ef663941eb23dc

18 years agoCreate a fresh pthread_mutexattr_t every time a recursive mutex is
drh [Sat, 25 Aug 2007 16:31:29 +0000 (16:31 +0000)] 
Create a fresh pthread_mutexattr_t every time a recursive mutex is
allocated.  Ticket #2588. (CVS 4300)

FossilOrigin-Name: 3d746343add3feb9d208302a00b419d71d6ba246

18 years agoDocumentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)
drh [Sat, 25 Aug 2007 16:21:29 +0000 (16:21 +0000)] 
Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)

FossilOrigin-Name: 7289079d6b4a7a160063e34c0f5e43637ef7476f

18 years agoClarification in the documentation of the sqlite3_mutex_held() and
drh [Sat, 25 Aug 2007 14:49:36 +0000 (14:49 +0000)] 
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

18 years agoUse recursive mutexes in pthreads. If the pthreads implementation does not
drh [Sat, 25 Aug 2007 14:39:45 +0000 (14:39 +0000)] 
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

18 years agoUpdate the rest of the malloc failure test scripts to use the new interface. (CVS...
danielk1977 [Sat, 25 Aug 2007 13:37:48 +0000 (13:37 +0000)] 
Update the rest of the malloc failure test scripts to use the new interface. (CVS 4296)

FossilOrigin-Name: b076e1655d6bae5ae10e6ceee646f502435da66a

18 years agoFix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
danielk1977 [Sat, 25 Aug 2007 13:09:26 +0000 (13:09 +0000)] 
Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)

FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315

18 years agoUpdate the async2.test test script to use the new malloc() failure simulation interfa...
danielk1977 [Sat, 25 Aug 2007 12:39:28 +0000 (12:39 +0000)] 
Update the async2.test test script to use the new malloc() failure simulation interface. (CVS 4294)

FossilOrigin-Name: 686fcfeda407c29cdb51fe814da616f1ccac5414

18 years agoMake the test_async backend work again. (CVS 4293)
danielk1977 [Sat, 25 Aug 2007 12:29:30 +0000 (12:29 +0000)] 
Make the test_async backend work again. (CVS 4293)

FossilOrigin-Name: 04167483aad42d319393e8caf470d8de11e468d8

18 years agoBug fix in the implementation of recursive mutexes using non-recursive
drh [Sat, 25 Aug 2007 03:59:08 +0000 (03:59 +0000)] 
Bug fix in the implementation of recursive mutexes using non-recursive
pthreads mutexes.  Ticket #2588. (CVS 4292)

FossilOrigin-Name: 7d24c3a5a7641df2bbb8c91a0bc5aa75c96a73fe

18 years agoNew mutex implementation for both Unix and windows. (CVS 4291)
drh [Fri, 24 Aug 2007 20:46:59 +0000 (20:46 +0000)] 
New mutex implementation for both Unix and windows. (CVS 4291)

FossilOrigin-Name: e144b81f699ca991cc4fa12a487156391db0b367

18 years agofix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean...
rse [Fri, 24 Aug 2007 18:32:58 +0000 (18:32 +0000)] 
fix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean', too (CVS 4290)

FossilOrigin-Name: 3c908648353a575c3ff57be5dd9454a946d23b9f

18 years agoRework the win32 OS driver to use malloc()/free() directly rather than
drh [Fri, 24 Aug 2007 17:52:21 +0000 (17:52 +0000)] 
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

18 years agoFix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)
drh [Fri, 24 Aug 2007 16:29:23 +0000 (16:29 +0000)] 
Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)

FossilOrigin-Name: 300038be9368556a29efce7cf3657fabfe54d8f9

18 years agoRemove nRef and vfsMutex from the sqlite3_vfs structure. Omit the
drh [Fri, 24 Aug 2007 16:08:29 +0000 (16:08 +0000)] 
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

18 years agoSelect the default page size for new databases based on the sector-size and IOCAP...
danielk1977 [Fri, 24 Aug 2007 11:52:28 +0000 (11:52 +0000)] 
Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286)

FossilOrigin-Name: 13dda2e8e879835c21e539ba3ff8f96face1af4c

18 years agoRemove unnecessary sqlite3MallocDisallow() that was preventing win32 from
drh [Fri, 24 Aug 2007 11:43:36 +0000 (11:43 +0000)] 
Remove unnecessary sqlite3MallocDisallow() that was preventing win32 from
running. (CVS 4285)

FossilOrigin-Name: eb6c98fc1097b327453d7e8ec8877101ea8187c3

18 years agoAdd tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP...
danielk1977 [Fri, 24 Aug 2007 08:15:53 +0000 (08:15 +0000)] 
Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284)

FossilOrigin-Name: bdf5cb8d25d93d48220ce46acad2ccf967a87843

18 years agoBug fix in the memory leak trace output. (CVS 4283)
drh [Fri, 24 Aug 2007 04:15:00 +0000 (04:15 +0000)] 
Bug fix in the memory leak trace output. (CVS 4283)

FossilOrigin-Name: a1b495c28a092c7eb79ffeeb6a217749acb4c12c

18 years agoThe win32 driver compiles but does not yet work well. Many bugs
drh [Fri, 24 Aug 2007 03:51:33 +0000 (03:51 +0000)] 
The win32 driver compiles but does not yet work well.  Many bugs
fixed. (CVS 4282)

FossilOrigin-Name: 3a68fcddfa9184e4b310ce0a21312c54b9462ec8

18 years agoMake comments and variable naming more consistent WRT rowid versus
shess [Thu, 23 Aug 2007 20:28:49 +0000 (20:28 +0000)] 
Make comments and variable naming more consistent WRT rowid versus
docid/blockid.  This should have no code impact. (CVS 4281)

FossilOrigin-Name: 76f1e18ebc25d692f122784e87d202992c4cfed2

18 years agoFix fts3 to not have the VACUUM bug from fts2. %_content.docid is an
shess [Thu, 23 Aug 2007 20:23:37 +0000 (20:23 +0000)] 
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

18 years agoAdd some warm-body tests for rollback journal i/o enhancements. (CVS 4279)
danielk1977 [Thu, 23 Aug 2007 16:27:21 +0000 (16:27 +0000)] 
Add some warm-body tests for rollback journal i/o enhancements. (CVS 4279)

FossilOrigin-Name: ff3770f855c1dd75025b1f2496f8c75e9f17ee44

18 years agoAdd code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS...
danielk1977 [Thu, 23 Aug 2007 14:48:23 +0000 (14:48 +0000)] 
Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278)

FossilOrigin-Name: 595568492e63822caed5b6970542dcee4615dc4d

18 years agoEnsure temporary files are deleted when they are closed. (CVS 4277)
danielk1977 [Thu, 23 Aug 2007 11:47:59 +0000 (11:47 +0000)] 
Ensure temporary files are deleted when they are closed. (CVS 4277)

FossilOrigin-Name: cf4e3c158aa71afc91f263a314c2e750d191fb41

18 years agoAdd some further tests and a bugfix for the atomic-write optimization. (CVS 4276)
danielk1977 [Thu, 23 Aug 2007 11:07:10 +0000 (11:07 +0000)] 
Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276)

FossilOrigin-Name: 5f0fb894f44069c4aa9b8dba62b4d8a262c991de

18 years agoAdd some tests for the atomic-write optimization. (CVS 4275)
danielk1977 [Thu, 23 Aug 2007 08:06:44 +0000 (08:06 +0000)] 
Add some tests for the atomic-write optimization. (CVS 4275)

FossilOrigin-Name: e2cc7b4a3476a733b2701546f6b4ec9abc18152b

18 years agoChange names of constants in lemon.c to work around name conflicts
drh [Thu, 23 Aug 2007 02:50:56 +0000 (02:50 +0000)] 
Change names of constants in lemon.c to work around name conflicts
on Solaris.  Ticket #2583. (CVS 4274)

FossilOrigin-Name: e4e74cd0f9343448ea38e57f08bb4f0616825f31

18 years agoImprovements to memory leak detection. The --backtrace=NNN option is now
drh [Thu, 23 Aug 2007 02:47:53 +0000 (02:47 +0000)] 
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

18 years agoAll of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
drh [Wed, 22 Aug 2007 22:04:37 +0000 (22:04 +0000)] 
All of the malloc test cases run.  Still seeing failures in malloc4.test. (CVS 4272)

FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2

18 years agoThe malloc.test script now passes all tests with no errors. (CVS 4271)
drh [Wed, 22 Aug 2007 20:18:21 +0000 (20:18 +0000)] 
The malloc.test script now passes all tests with no errors. (CVS 4271)

FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3

18 years agoFix a bug in the logic for journaling pages when the device sector-size is greater...
danielk1977 [Wed, 22 Aug 2007 18:54:32 +0000 (18:54 +0000)] 
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

18 years agoGet the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)
drh [Wed, 22 Aug 2007 11:41:18 +0000 (11:41 +0000)] 
Get the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)

FossilOrigin-Name: 1f28b7e47bba221c14a10a37e7425c9975bb2312

18 years agoAdd code for the atomic-write optimisation. Disabled by default. (CVS 4268)
danielk1977 [Wed, 22 Aug 2007 11:22:03 +0000 (11:22 +0000)] 
Add code for the atomic-write optimisation. Disabled by default. (CVS 4268)

FossilOrigin-Name: 581fadfe31757e3fb97b12f93c1e3c085e4b6009

18 years agoRemove a debugging btree_breakpoint from vtab1.test. (CVS 4267)
drh [Wed, 22 Aug 2007 02:57:16 +0000 (02:57 +0000)] 
Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267)

FossilOrigin-Name: 6cc8641ed2fbfc32d418ce153f2819052f230be2

18 years agoA complete run of quick.test with mutex debugging enabled. (CVS 4266)
drh [Wed, 22 Aug 2007 02:56:42 +0000 (02:56 +0000)] 
A complete run of quick.test with mutex debugging enabled. (CVS 4266)

FossilOrigin-Name: 783e07d561d1f5509de9475f3b9f38315f247002

18 years agoReenable the memory management logic. The quick.test script now runs with
drh [Wed, 22 Aug 2007 00:39:19 +0000 (00:39 +0000)] 
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

18 years agoAll mutexing and locking appears to be in place. Now we just have to
drh [Tue, 21 Aug 2007 20:25:39 +0000 (20:25 +0000)] 
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

18 years agoThe sqlite3_value object now carries an sqlite3* pointer to use for
drh [Tue, 21 Aug 2007 19:33:56 +0000 (19:33 +0000)] 
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

18 years agoAdding more thread locking code. This is an incremental check-in. (CVS 4262)
drh [Tue, 21 Aug 2007 16:15:55 +0000 (16:15 +0000)] 
Adding more thread locking code.  This is an incremental check-in. (CVS 4262)

FossilOrigin-Name: 7428732b1fa04b83eda0a3539834693ef351313e

18 years agoReadded the sqlite3_open_v2() interface. No test cases yet.
drh [Tue, 21 Aug 2007 15:13:19 +0000 (15:13 +0000)] 
Readded the sqlite3_open_v2() interface.  No test cases yet.
Additional progress toward adding mutexes to all interfaces. (CVS 4261)

FossilOrigin-Name: 3787563e90d7210d349ee36484c3f008c955552e

18 years agoDelay opening temporary pager files until they are first written. (CVS 4260)
danielk1977 [Tue, 21 Aug 2007 14:27:01 +0000 (14:27 +0000)] 
Delay opening temporary pager files until they are first written. (CVS 4260)

FossilOrigin-Name: 3fb97a63ef70662abdba18ce8b480e6b0badcfb1

18 years agoRemove the obsolete static mutexes. Use only the lastest static mutex code. (CVS...
drh [Tue, 21 Aug 2007 13:51:23 +0000 (13:51 +0000)] 
Remove the obsolete static mutexes.  Use only the lastest static mutex code. (CVS 4259)

FossilOrigin-Name: 6225cd461cdd2132eeb480aa4deb8986b7f63c15

18 years agoAdd the tests that go with the previous commit. (CVS 4258)
danielk1977 [Tue, 21 Aug 2007 13:30:07 +0000 (13:30 +0000)] 
Add the tests that go with the previous commit. (CVS 4258)

FossilOrigin-Name: a87f32e13e91250ab4d9366d2e9a3a7024a12fb9

18 years agoAvoid journalling an extra page when a btree insert operation uses the 'quick-balance...
danielk1977 [Tue, 21 Aug 2007 13:11:00 +0000 (13:11 +0000)] 
Avoid journalling an extra page when a btree insert operation uses the 'quick-balance' trick. (CVS 4257)

FossilOrigin-Name: 0da48209140b6c1ba47df799ce6065054b994f02

18 years agoFix some problems in the crash-test backend. (CVS 4256)
danielk1977 [Tue, 21 Aug 2007 13:07:46 +0000 (13:07 +0000)] 
Fix some problems in the crash-test backend. (CVS 4256)

FossilOrigin-Name: 5bced2392ad77aff0aa1ddea83f2ff9e3ffe28a8

18 years agoRemove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
drh [Tue, 21 Aug 2007 10:44:15 +0000 (10:44 +0000)] 
Remove unnecessary #includes of "os.h".  New mutex implementations. (CVS 4255)

FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873

18 years agoThe quick test runs again with a handfull of errors after adding the
drh [Mon, 20 Aug 2007 23:50:24 +0000 (23:50 +0000)] 
The quick test runs again with a handfull of errors after adding the
mutex locks to btree, the VFS registration interfaces, and FTS3. (CVS 4254)

FossilOrigin-Name: 6cf725d212d468cbd7c7cbc22ca5ab13f1d77939

18 years agoWork toward multithreading support. Currently crashes quickly on a test. (CVS 4253)
drh [Mon, 20 Aug 2007 22:48:41 +0000 (22:48 +0000)] 
Work toward multithreading support.  Currently crashes quickly on a test. (CVS 4253)

FossilOrigin-Name: 1315bd8e125602275fb718780f9b2730bd37f6ab

18 years agoOops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)
shess [Mon, 20 Aug 2007 17:52:59 +0000 (17:52 +0000)] 
Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)

FossilOrigin-Name: 709f2aa18a4802a7ca6638c00b2b99440b4a3191

18 years agoReplicate the fts2*.test files as fts3a*.test, and convert fts2 to
shess [Mon, 20 Aug 2007 17:38:42 +0000 (17:38 +0000)] 
Replicate the fts2*.test files as fts3a*.test, and convert fts2 to
fts3 in the text of the files. (CVS 4251)

FossilOrigin-Name: 24739f148e7687532fd04794a041aade8626c630

18 years agoAdd support for building with fts3. (CVS 4250)
shess [Mon, 20 Aug 2007 17:37:47 +0000 (17:37 +0000)] 
Add support for building with fts3. (CVS 4250)

FossilOrigin-Name: 95ef963232ab1f15a7c42229819d33d3571a753e

18 years agoCopy fts2 to fts3, renaming, and replacing references to fts2 with
shess [Mon, 20 Aug 2007 17:37:02 +0000 (17:37 +0000)] 
Copy fts2 to fts3, renaming, and replacing references to fts2 with
fts3, including capitalization variants. (CVS 4249)

FossilOrigin-Name: 216c91d2fc49792d9ff53596746f1162f5b7f8d4

18 years agoCall sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)
danielk1977 [Mon, 20 Aug 2007 16:07:00 +0000 (16:07 +0000)] 
Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)

FossilOrigin-Name: 917790413ced92266bf5c7cca6d130ed7ac6221b

18 years agoChanges to crash-test io backend (test6.c) so that it works with the sqlite3_vfs...
danielk1977 [Mon, 20 Aug 2007 14:23:44 +0000 (14:23 +0000)] 
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)

FossilOrigin-Name: 40f66ada815fa1043d24c9cd6d898e1797e7044a

18 years agoBug fix in BTree shared cache locking code. (CVS 4246)
drh [Mon, 20 Aug 2007 13:14:28 +0000 (13:14 +0000)] 
Bug fix in BTree shared cache locking code. (CVS 4246)

FossilOrigin-Name: 399d3e755253a7b4604a62b9f171e0f1154134e2

18 years agoGet main.c to compile when HAVE_USLEEP is 0. (CVS 4245)
drh [Mon, 20 Aug 2007 11:12:40 +0000 (11:12 +0000)] 
Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245)

FossilOrigin-Name: b27f022fb924709f1c5e4642d5d59cab942e826d

18 years agoUpdate the locking-style code in os_unix.c. The updates are as yet untested. (CVS...
danielk1977 [Mon, 20 Aug 2007 06:44:22 +0000 (06:44 +0000)] 
Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244)

FossilOrigin-Name: 41f2175b1ed7eccf271b687ee5c3ea262a0cd096

18 years agoFix full_fsync() related functionality broken as part of the migration to sqlite3_vfs...
danielk1977 [Mon, 20 Aug 2007 05:36:51 +0000 (05:36 +0000)] 
Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243)

FossilOrigin-Name: cb24cda179c2b526c5ac48be75e372d2b9db808c

18 years agoFurther progress on migration to sqlite3_vfs. (CVS 4242)
danielk1977 [Sat, 18 Aug 2007 10:59:19 +0000 (10:59 +0000)] 
Further progress on migration to sqlite3_vfs. (CVS 4242)

FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67

18 years agoRemove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function...
danielk1977 [Fri, 17 Aug 2007 16:50:38 +0000 (16:50 +0000)] 
Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241)

FossilOrigin-Name: 08a0f48028794abbeae1b4852652062b38d37d88

18 years agoBegin migration to using sqlite3_vfs interface. (CVS 4240)
danielk1977 [Fri, 17 Aug 2007 15:53:36 +0000 (15:53 +0000)] 
Begin migration to using sqlite3_vfs interface. (CVS 4240)

FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1

18 years agoBegin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we
drh [Fri, 17 Aug 2007 01:14:38 +0000 (01:14 +0000)] 
Begin adding mutexes.  Compiles without SQLITE_OMIT_SHARED_CACHE but we
get an assertion fault on the shared cache testing. (CVS 4239)

FossilOrigin-Name: 4c1e9ffebe7c611a8b6a89153ae97ab9bca19ea3

18 years agoChange the design of the mutex interface to allow for
drh [Thu, 16 Aug 2007 19:40:16 +0000 (19:40 +0000)] 
Change the design of the  mutex interface to allow for
both "fast" and "recursive" mutexes. (CVS 4238)

FossilOrigin-Name: 160593dcc5690af715b775c81137c6e09cca6454

18 years agoRemove the thread specific data subsystem from the unix build. Remove
drh [Thu, 16 Aug 2007 13:01:44 +0000 (13:01 +0000)] 
Remove the thread specific data subsystem from the unix build.  Remove
legacy cruft from sqliteInt.h.  Use the new mutex subsystem in the PRNG. (CVS 4237)

FossilOrigin-Name: 3d60c14a32955b69e714a73372924d421899f83b

18 years agoCombine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)
drh [Thu, 16 Aug 2007 12:24:01 +0000 (12:24 +0000)] 
Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)

FossilOrigin-Name: ba80ee59a72afe36817997de705ef81d876b6f35

18 years agoFix some more small problems introduced by recent refactoring. (CVS 4235)
danielk1977 [Thu, 16 Aug 2007 11:36:15 +0000 (11:36 +0000)] 
Fix some more small problems introduced by recent refactoring. (CVS 4235)

FossilOrigin-Name: 5e2795d0eb8ea2a076b3014cfa9096aa7e8f69d7

18 years agoReplace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
danielk1977 [Thu, 16 Aug 2007 10:36:33 +0000 (10:36 +0000)] 
Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)

FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b

18 years agoMore work on refactoring of malloc() interfaces. There are still many errors. (CVS...
danielk1977 [Thu, 16 Aug 2007 10:09:01 +0000 (10:09 +0000)] 
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)

FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64

18 years agoAdd a test for malloc() failure when compiling a trigger step of the form "INSERT...
danielk1977 [Thu, 16 Aug 2007 04:39:01 +0000 (04:39 +0000)] 
Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)

FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729

18 years agoHalf-way through a major refactoring of the memory allocation.
drh [Thu, 16 Aug 2007 04:30:38 +0000 (04:30 +0000)] 
Half-way through a major refactoring of the memory allocation.
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)

FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3

18 years agoEnhancements and smoke testing of the new memory allocation subsystem.
drh [Wed, 15 Aug 2007 20:41:28 +0000 (20:41 +0000)] 
Enhancements and smoke testing of the new memory allocation subsystem.
Have not yet cut it over to the core, though. (CVS 4230)

FossilOrigin-Name: 1dad2c0a1f00596b13b02ccef664bd2346a677a4

18 years agoTest infrastructure for the new memory subsystem. (CVS 4229)
drh [Wed, 15 Aug 2007 19:16:43 +0000 (19:16 +0000)] 
Test infrastructure for the new memory subsystem. (CVS 4229)

FossilOrigin-Name: 9e506656720fb3a3205b8cc398152272ce56f6f3

18 years agoModify the crash-recovery test code in test6.c for 3.5. Also change some other code...
danielk1977 [Wed, 15 Aug 2007 17:08:46 +0000 (17:08 +0000)] 
Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228)

FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e

18 years agoAdd a debugging memory allocator. (CVS 4227)
drh [Wed, 15 Aug 2007 17:07:57 +0000 (17:07 +0000)] 
Add a debugging memory allocator. (CVS 4227)

FossilOrigin-Name: 8d2d1c4ff9dca61f75e3048107ee9712d346a28c

18 years agoAdd initial implementations of mutex and memory subsystem modules. (CVS 4226)
drh [Wed, 15 Aug 2007 13:04:54 +0000 (13:04 +0000)] 
Add initial implementations of mutex and memory subsystem modules. (CVS 4226)

FossilOrigin-Name: c0fa3769790af199a4c8715c80bb8ff900730520

18 years agoRevisions to the interface design for 3.5. (CVS 4225)
drh [Wed, 15 Aug 2007 11:28:56 +0000 (11:28 +0000)] 
Revisions to the interface design for 3.5. (CVS 4225)

FossilOrigin-Name: 174116f7c0ceeceb5e32868b29fabf8a6943cbf6

18 years agoClarify documentation on sqlite3_interrupt(). (CVS 4224)
drh [Tue, 14 Aug 2007 18:03:14 +0000 (18:03 +0000)] 
Clarify documentation on sqlite3_interrupt(). (CVS 4224)

FossilOrigin-Name: 0b5b526c9de22a34c5051d14735a062ed3f898eb

18 years agoAdd comments describing upcoming changes to crash-test module (test6.c). No code
danielk1977 [Tue, 14 Aug 2007 17:42:05 +0000 (17:42 +0000)] 
Add comments describing upcoming changes to crash-test module (test6.c). No code
changes. (CVS 4223)

FossilOrigin-Name: 63631c17376bcb5a7aa305408aaeaf03738d7b95

18 years agoAdd a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS...
drh [Tue, 14 Aug 2007 01:58:53 +0000 (01:58 +0000)] 
Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219)

FossilOrigin-Name: 0a57f3dd4de12278732e3ca9d8a95f85c351da03

18 years agoVersion 3.4.2 (CVS 4218)
drh [Mon, 13 Aug 2007 20:31:01 +0000 (20:31 +0000)] 
Version 3.4.2 (CVS 4218)

FossilOrigin-Name: 64989904d44556eee0ea0270f8d4f0e903ffcfdf

18 years agoUpdate version number of documentation in preparation for version 3.4.2. (CVS 4217)
drh [Mon, 13 Aug 2007 16:15:29 +0000 (16:15 +0000)] 
Update version number of documentation in preparation for version 3.4.2. (CVS 4217)

FossilOrigin-Name: 1ed51e3ca04bee887326cb323bc7046ff1a98946

18 years agoInvalidate prepared SQL statements when rolling back a transaction that includes...
danielk1977 [Mon, 13 Aug 2007 15:28:33 +0000 (15:28 +0000)] 
Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)

FossilOrigin-Name: a07143fc0578a5fc7c891e94616ee0b353674d6e

18 years agoDisable tests that require 80-bit long doubles when the host only
drh [Mon, 13 Aug 2007 15:18:27 +0000 (15:18 +0000)] 
Disable tests that require 80-bit long doubles when the host only
provides 64-bit long doubles.  Ticket #2570. (CVS 4215)

FossilOrigin-Name: 4f4f8ef416394b7e54e8894f7a0d067d64636fc4

18 years agoFix a page leak in btree balance routines that follows a malloc failure.
drh [Mon, 13 Aug 2007 14:56:44 +0000 (14:56 +0000)] 
Fix a page leak in btree balance routines that follows a malloc failure.
This problem detected by the new soft-heap-limit testing. (CVS 4214)

FossilOrigin-Name: bad661bb0bfabf982a2d711ea4165af130a4cae0

18 years agoWhen loading a database schema, do not clear the SQLITE_InternChanges flag. This...
danielk1977 [Mon, 13 Aug 2007 14:41:19 +0000 (14:41 +0000)] 
When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213)

FossilOrigin-Name: 540a7b28bc37709056cfdb13286274ec5bdd8423

18 years agoFix the test labels in mallocC.test. (CVS 4212)
drh [Mon, 13 Aug 2007 12:58:18 +0000 (12:58 +0000)] 
Fix the test labels in mallocC.test. (CVS 4212)

FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4

18 years agoAdd a new test cases for a problem with malloc failure during the parsing
drh [Mon, 13 Aug 2007 12:39:03 +0000 (12:39 +0000)] 
Add a new test cases for a problem with malloc failure during the parsing
of CREATE TABLE statements in autovacuum mode. (CVS 4211)

FossilOrigin-Name: be50387e658a9a73e12b07ca89ae75e871489f16

18 years agoRemove a memory allocation from sqlite3VdbeIOTraceSql(). This means that
drh [Mon, 13 Aug 2007 11:10:34 +0000 (11:10 +0000)] 
Remove a memory allocation from sqlite3VdbeIOTraceSql().  This means that
when doing I/O tracing, the text of an SQL statement is truncated to the
first 1000 characters.  But it also means tracing works in an out-of-memory
situation. (CVS 4210)

FossilOrigin-Name: 578da2476e356ea35d272e18faf490efedeaf25c

18 years agoUpdates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
drh [Sun, 12 Aug 2007 20:07:58 +0000 (20:07 +0000)] 
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)

FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31

18 years agoBackout check-in (4206) and replace it with a much better and more
drh [Sat, 11 Aug 2007 00:26:20 +0000 (00:26 +0000)] 
Backout check-in (4206) and replace it with a much better and more
general fix for the problem identified in ticket #2565. (CVS 4208)

FossilOrigin-Name: 7961a7385013d74ec78cbdfff6867c505528c163

18 years agoFix some incorrect asserts() in the pager - problems brought to light by
drh [Fri, 10 Aug 2007 23:56:35 +0000 (23:56 +0000)] 
Fix some incorrect asserts() in the pager - problems brought to light by
the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207)

FossilOrigin-Name: 51f3e01b7486f23b67bdfb6bb19fc5297b2c8cec