]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoFix a memory leak in the win32 OS driver. Ticket #2602. (CVS 4345)
drh [Thu, 30 Aug 2007 16:46:04 +0000 (16:46 +0000)] 
Fix a memory leak in the win32 OS driver.  Ticket #2602. (CVS 4345)

FossilOrigin-Name: 1f80cf5e759af68b854d4de2e97badf546a465ca

18 years agoFix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16...
danielk1977 [Thu, 30 Aug 2007 16:30:27 +0000 (16:30 +0000)] 
Fix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16 version of func.test. (CVS 4344)

FossilOrigin-Name: c073b78040e5833de038dea464ac87c7358b8b51

18 years agoMake the latest interfaces usable by loadable extensions. (CVS 4343)
drh [Thu, 30 Aug 2007 16:23:19 +0000 (16:23 +0000)] 
Make the latest interfaces usable by loadable extensions. (CVS 4343)

FossilOrigin-Name: e9b2700b8c30b0255c9e33419ff18bdebb78087a

18 years agoPrevent sqlite from opening directories as databases under unix. Fix for test cae...
danielk1977 [Thu, 30 Aug 2007 16:13:33 +0000 (16:13 +0000)] 
Prevent sqlite from opening directories as databases under unix. Fix for test cae in misc7.test. (CVS 4342)

FossilOrigin-Name: e30546504c59c7d92d83a32d9b7e83edc175e247

18 years agoCheck in extra fixes for malloc4.test. (CVS 4341)
danielk1977 [Thu, 30 Aug 2007 15:46:06 +0000 (15:46 +0000)] 
Check in extra fixes for malloc4.test. (CVS 4341)

FossilOrigin-Name: 49ce3a838194f0316c883dbe1596d13c0c0fad1b

18 years agoFixes for malloc4.test. (CVS 4340)
danielk1977 [Thu, 30 Aug 2007 15:16:04 +0000 (15:16 +0000)] 
Fixes for malloc4.test. (CVS 4340)

FossilOrigin-Name: 23746924db3c005d1f75572c6cbb91db6fc41eb4

18 years agoFix the SQLITE_MIXED_ENDIAN_64BIT_FLOAT option so that it works on
drh [Thu, 30 Aug 2007 15:05:08 +0000 (15:05 +0000)] 
Fix the SQLITE_MIXED_ENDIAN_64BIT_FLOAT option so that it works on
goofy linux kernels that employ CONFIG_FPE_FASTFPE.  Patch from
Frank van Vugt. (CVS 4339)

FossilOrigin-Name: 71ab92e900512ad01047b46f734bd5f65998ecf9

18 years agoFix a ref-count problem in the TCL bindings. Ticket #2597. (CVS 4338)
drh [Thu, 30 Aug 2007 14:58:20 +0000 (14:58 +0000)] 
Fix a ref-count problem in the TCL bindings.  Ticket #2597. (CVS 4338)

FossilOrigin-Name: 18a5babb72102f9a82cb24757612a8b683a3f995

18 years agoRemove the SYNC_BARRIER flag. (CVS 4337)
danielk1977 [Thu, 30 Aug 2007 14:49:58 +0000 (14:49 +0000)] 
Remove the SYNC_BARRIER flag. (CVS 4337)

FossilOrigin-Name: 5a22d8695b49cf7bc2eee382b66a98d29adb9e6e

18 years agoFixes to malloc3.test so that it can run in transient or persistent failure mode...
danielk1977 [Thu, 30 Aug 2007 14:41:34 +0000 (14:41 +0000)] 
Fixes to malloc3.test so that it can run in transient or persistent failure mode. (CVS 4336)

FossilOrigin-Name: e14e3688eb64577a2a7070e4e47e715a5d7d5089

18 years agoBug fixes in the mutex header file. Tickets #2599 and #2600. (CVS 4335)
drh [Thu, 30 Aug 2007 14:10:30 +0000 (14:10 +0000)] 
Bug fixes in the mutex header file.  Tickets #2599 and #2600. (CVS 4335)

FossilOrigin-Name: 4bdfe1419c536fec5b3c0a7fbe3d0ff52f183f43

18 years agoFixes for failures in fuzz_malloc.test. (CVS 4334)
danielk1977 [Thu, 30 Aug 2007 11:48:31 +0000 (11:48 +0000)] 
Fixes for failures in fuzz_malloc.test. (CVS 4334)

FossilOrigin-Name: d3e502263808c1fe0487fda02f16adcbb1279183

18 years agoFix some problems in async2.test. No code changes. (CVS 4333)
danielk1977 [Thu, 30 Aug 2007 10:49:54 +0000 (10:49 +0000)] 
Fix some problems in async2.test. No code changes. (CVS 4333)

FossilOrigin-Name: d80d87c239df06ef2182bc2b78e6d4c1852d28c9

18 years agoBetter handle a malloc() failure in sqlite3PagerSetPagesize(). (CVS 4332)
danielk1977 [Thu, 30 Aug 2007 10:07:38 +0000 (10:07 +0000)] 
Better handle a malloc() failure in sqlite3PagerSetPagesize(). (CVS 4332)

FossilOrigin-Name: 41550d87c9395ab2fec5993655865e29235130a3

18 years agoFix a bug in a test file causing malloc5.test to crash. (CVS 4331)
danielk1977 [Thu, 30 Aug 2007 08:27:39 +0000 (08:27 +0000)] 
Fix a bug in a test file causing malloc5.test to crash. (CVS 4331)

FossilOrigin-Name: ab09967bd2dd291030850d44c0862fbb7d0d8118

18 years agoAdd tests for malloc() failure when the atomic-write optimization is being used....
danielk1977 [Thu, 30 Aug 2007 08:08:17 +0000 (08:08 +0000)] 
Add tests for malloc() failure when the atomic-write optimization is being used. Also fix things so that rollback can occur without a malloc(), even if there is a master journal file. (CVS 4330)

FossilOrigin-Name: 481fd3a89e50e329596d96565170e3d9977aae29

18 years agoTest case fixes for fulltest. (CVS 4329)
drh [Thu, 30 Aug 2007 02:26:53 +0000 (02:26 +0000)] 
Test case fixes for fulltest. (CVS 4329)

FossilOrigin-Name: cddce4950569ac49c1a5224b200b00dcd83a2ba4

18 years agoFix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328)
drh [Thu, 30 Aug 2007 01:19:59 +0000 (01:19 +0000)] 
Fix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328)

FossilOrigin-Name: e40d40a5d41c491bef852a92e5846b273b206909

18 years agoFix minor problems on various tests. This is a snapshot prior to possible
drh [Wed, 29 Aug 2007 19:15:08 +0000 (19:15 +0000)] 
Fix minor problems on various tests.  This is a snapshot prior to possible
major changes in order to fix the sqlite3AbortOtherActiveVdbes problem. (CVS 4327)

FossilOrigin-Name: 35cb63ecfd9d8ca7304aae1b150ee5d1c3498bde

18 years agoFix a bug in test_server.c that resulted from the change in semantics
drh [Wed, 29 Aug 2007 18:20:16 +0000 (18:20 +0000)] 
Fix a bug in test_server.c that resulted from the change in semantics
of sqlite3_enable_shared_cache().  All quick tests now pass. (CVS 4326)

FossilOrigin-Name: 5201fa4f8310ffc8b6881d96b152581d74e2df6b

18 years agoDisable tests that require SQLITE_ENABLE_ATOMIC_WRITE if that feature is
drh [Wed, 29 Aug 2007 17:59:42 +0000 (17:59 +0000)] 
Disable tests that require SQLITE_ENABLE_ATOMIC_WRITE if that feature is
not enabled. (CVS 4325)

FossilOrigin-Name: 4874499377e8f89a25d8cc2cf7982e6811d53f1b

18 years agoImprovements to mutex asserts. The quick test runs to completion without
drh [Wed, 29 Aug 2007 17:43:19 +0000 (17:43 +0000)] 
Improvements to mutex asserts.  The quick test runs to completion without
assertion faults. (CVS 4324)

FossilOrigin-Name: 2732af0ec77dbc90c0439b6a61d893d9ea3b5697

18 years agoUse the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
danielk1977 [Wed, 29 Aug 2007 14:06:22 +0000 (14:06 +0000)] 
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)

FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c

18 years agoBe careful to verify the schema cookie when running the xfer optimization
drh [Wed, 29 Aug 2007 13:45:58 +0000 (13:45 +0000)] 
Be careful to verify the schema cookie when running the xfer optimization
on INSERT statements. (CVS 4322)

FossilOrigin-Name: d8ef7024172fffee049cfda6707220af2577e9a1

18 years agoModifications to the malloc failure tests to test transient and persistent failures...
danielk1977 [Wed, 29 Aug 2007 12:31:25 +0000 (12:31 +0000)] 
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)

FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e

18 years agoBetter asserts(). But now some of the tests are busted again. (CVS 4320)
drh [Wed, 29 Aug 2007 04:00:57 +0000 (04:00 +0000)] 
Better asserts().  But now some of the tests are busted again. (CVS 4320)

FossilOrigin-Name: e8060f85e7871572e2a38dc96f03e6e1f34cc8fd

18 years agoMore locking fixes. Now makes it all the way through quick.test. There
drh [Wed, 29 Aug 2007 00:33:07 +0000 (00:33 +0000)] 
More locking fixes.  Now makes it all the way through quick.test.  There
are errors but no assertion faults.  Progress. (CVS 4319)

FossilOrigin-Name: 844d40b8379d3374130e2d94f6e32c2cda34e0ca

18 years agoThe shared_err test runs with no errors. But a potential deadlock has been
drh [Tue, 28 Aug 2007 23:28:07 +0000 (23:28 +0000)] 
The shared_err test runs with no errors.  But a potential deadlock has been
discovered and is still unfixed. (CVS 4318)

FossilOrigin-Name: f093a0d7b29a819605e0527bf23a047e16c32688

18 years agoThe shared_err test runs with no errors. But a potential deadlock has been
drh [Tue, 28 Aug 2007 23:28:07 +0000 (23:28 +0000)] 
The shared_err test runs with no errors.  But a potential deadlock has been
discovered and is still unfixed. (CVS 4317)

FossilOrigin-Name: f84550be0a0c9e5859b852863b9a8f8ed3fd6919

18 years agoClean up the locking in the btree logic. (CVS 4316)
drh [Tue, 28 Aug 2007 22:24:34 +0000 (22:24 +0000)] 
Clean up the locking in the btree logic. (CVS 4316)

FossilOrigin-Name: 967ab229af462a8ae663090ea36b4cc10e351653

18 years agoFix memory leak of InteriorReader.term. Comes up when doing queries
shess [Tue, 28 Aug 2007 20:36:53 +0000 (20:36 +0000)] 
Fix memory leak of InteriorReader.term.  Comes up when doing queries
against large segments. (CVS 4315)

FossilOrigin-Name: 6c617bd89fc57881a2a308a6360e8ebb42835d46

18 years agoremove unused os_os2.h (CVS 4314)
pweilbacher [Tue, 28 Aug 2007 19:21:21 +0000 (19:21 +0000)] 
remove unused os_os2.h (CVS 4314)

FossilOrigin-Name: dd43a2de3ed1659d70361370d07a184dd8ece45f

18 years agoFix locking bug in btshared.c. (CVS 4313)
drh [Tue, 28 Aug 2007 16:44:20 +0000 (16:44 +0000)] 
Fix locking bug in btshared.c. (CVS 4313)

FossilOrigin-Name: af24e7d01a7fab5e33080a0f786e0bc6f610a6f3

18 years agoBreak up the mutex implementation into separate source files, one
drh [Tue, 28 Aug 2007 16:34:42 +0000 (16:34 +0000)] 
Break up the mutex implementation into separate source files, one
each for unix, w32, and os2. (CVS 4312)

FossilOrigin-Name: fc5cd71aef5ac194f51d73350d773d532020967e

18 years agoUpdates to the sqlite3_open() documentation. Method the magic
drh [Tue, 28 Aug 2007 15:47:44 +0000 (15:47 +0000)] 
Updates to the sqlite3_open() documentation.  Method the magic
:memory: filename.  Ticket #2591. (CVS 4311)

FossilOrigin-Name: 5f55b2fc4ecdfc1bb68f479751b8642926fd8833

18 years agoUpdate the sqlite3_vfs_register() documentation to make
drh [Tue, 28 Aug 2007 15:21:45 +0000 (15:21 +0000)] 
Update the sqlite3_vfs_register() documentation to make
the behavior undefined for VFSes with a NULL or empty string
as the name or with duplicate names. (CVS 4310)

FossilOrigin-Name: e7a98b48384ea581d98dad5118ee33468d526c62

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