0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-23 23:36:50 +00:00

Commit Graph

  • 26783a58e2 Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323) danielk1977 2007-08-29 14:06:22 +00:00
  • f53e9b5ad5 Be careful to verify the schema cookie when running the xfer optimization on INSERT statements. (CVS 4322) drh 2007-08-29 13:45:58 +00:00
  • a1644fd863 Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) danielk1977 2007-08-29 12:31:25 +00:00
  • 1fee73e74a Better asserts(). But now some of the tests are busted again. (CVS 4320) drh 2007-08-29 04:00:57 +00:00
  • b1ab8ea7f3 More locking fixes. Now makes it all the way through quick.test. There are errors but no assertion faults. Progress. (CVS 4319) drh 2007-08-29 00:33:07 +00:00
  • dfbf178469 The shared_err test runs with no errors. But a potential deadlock has been discovered and is still unfixed. (CVS 4318) drh 2007-08-28 23:28:07 +00:00
  • 4cf7c7f7e7 The shared_err test runs with no errors. But a potential deadlock has been discovered and is still unfixed. (CVS 4317) drh 2007-08-28 23:28:07 +00:00
  • d0679edc7a Clean up the locking in the btree logic. (CVS 4316) drh 2007-08-28 22:24:34 +00:00
  • 27a770e044 Fix memory leak of InteriorReader.term. Comes up when doing queries against large segments. (CVS 4315) shess 2007-08-28 20:36:53 +00:00
  • 6e180029b3 remove unused os_os2.h (CVS 4314) pweilbacher 2007-08-28 19:21:21 +00:00
  • ac32155213 Fix locking bug in btshared.c. (CVS 4313) drh 2007-08-28 16:44:20 +00:00
  • 437b901371 Break up the mutex implementation into separate source files, one each for unix, w32, and os2. (CVS 4312) drh 2007-08-28 16:34:42 +00:00
  • 9da9d96242 Updates to the sqlite3_open() documentation. Method the magic :memory: filename. Ticket #2591. (CVS 4311) drh 2007-08-28 15:47:44 +00:00
  • b6f5cf331c 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) drh 2007-08-28 15:21:45 +00:00
  • 6e513c16dc Use "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309) danielk1977 2007-08-28 08:19:49 +00:00
  • 84f786fcdd Add some comments and test-cases for the global lru page list (used by sqlite3_release_memory()). (CVS 4308) danielk1977 2007-08-28 08:00:17 +00:00
  • 900b31ef49 Work toward correct btree locking in a multithreaded environment. (CVS 4307) drh 2007-08-28 02:27:51 +00:00
  • da57895fec Disable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS 4306) drh 2007-08-27 23:48:23 +00:00
  • 4bfc8a97f9 Fix the autoconf makefile with all the latest changes. (CVS 4305) drh 2007-08-27 23:38:43 +00:00
  • 46c99e0f5d Work around problem with forward declarations of constants in MSVC in the amalgamation. Ticket #2574. (CVS 4304) drh 2007-08-27 23:26:59 +00:00
  • 97c8ec325d Bring the amalgamation builder up to date with the latest changes. Remove some vestigial code. (CVS 4303) drh 2007-08-27 21:49:34 +00:00
  • 50d3f9064b Added the 34to35.html document describing the changes between 3.4.2 and 3.5.0. Minor interface cleanups. (CVS 4302) drh 2007-08-27 21:10:36 +00:00
  • 9f61c2f129 Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301) danielk1977 2007-08-27 17:27:49 +00:00
  • 4b6b4ab0d2 Create a fresh pthread_mutexattr_t every time a recursive mutex is allocated. Ticket #2588. (CVS 4300) drh 2007-08-25 16:31:29 +00:00
  • 8bacf9743f Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299) drh 2007-08-25 16:21:29 +00:00
  • 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) drh 2007-08-25 14:49:36 +00:00
  • 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) drh 2007-08-25 14:39:45 +00:00
  • 222a757dba Update the rest of the malloc failure test scripts to use the new interface. (CVS 4296) danielk1977 2007-08-25 13:37:48 +00:00
  • cdc3a6bcbc Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295) danielk1977 2007-08-25 13:09:26 +00:00
  • df7ca22abb Update the async2.test test script to use the new malloc() failure simulation interface. (CVS 4294) danielk1977 2007-08-25 12:39:28 +00:00
  • 0e87b70100 Make the test_async backend work again. (CVS 4293) danielk1977 2007-08-25 12:29:30 +00:00
  • dc3060fea3 Bug fix in the implementation of recursive mutexes using non-recursive pthreads mutexes. Ticket #2588. (CVS 4292) drh 2007-08-25 03:59:08 +00:00
  • bff101efd7 New mutex implementation for both Unix and windows. (CVS 4291) drh 2007-08-24 20:46:59 +00:00
  • e806566248 fix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean', too (CVS 4290) rse 2007-08-24 18:32:58 +00:00
  • 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) drh 2007-08-24 17:52:21 +00:00
  • ae28c01aa8 Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288) drh 2007-08-24 16:29:23 +00:00
  • 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) drh 2007-08-24 16:08:29 +00:00
  • 9663b8f92d Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286) danielk1977 2007-08-24 11:52:28 +00:00
  • f78799e637 Remove unnecessary sqlite3MallocDisallow() that was preventing win32 from running. (CVS 4285) drh 2007-08-24 11:43:36 +00:00
  • f55b899824 Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284) danielk1977 2007-08-24 08:15:53 +00:00
  • d5499d648f Bug fix in the memory leak trace output. (CVS 4283) drh 2007-08-24 04:15:00 +00:00
  • 153c62c461 The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) drh 2007-08-24 03:51:33 +00:00
  • bae37537b0 Make comments and variable naming more consistent WRT rowid versus docid/blockid. This should have no code impact. (CVS 4281) shess 2007-08-23 20:28:49 +00:00
  • 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) shess 2007-08-23 20:23:37 +00:00
  • 6897ca30b5 Add some warm-body tests for rollback journal i/o enhancements. (CVS 4279) danielk1977 2007-08-23 16:27:21 +00:00
  • 4cd2cd5c69 Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278) danielk1977 2007-08-23 14:48:23 +00:00
  • 863c0f9b87 Ensure temporary files are deleted when they are closed. (CVS 4277) danielk1977 2007-08-23 11:47:59 +00:00
  • f8940aefb6 Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276) danielk1977 2007-08-23 11:07:10 +00:00
  • 2ca0f86354 Add some tests for the atomic-write optimization. (CVS 4275) danielk1977 2007-08-23 08:06:44 +00:00
  • aa9f112137 Change names of constants in lemon.c to work around name conflicts on Solaris. Ticket #2583. (CVS 4274) drh 2007-08-23 02:50:56 +00:00
  • 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) drh 2007-08-23 02:47:53 +00:00
  • ed138fb3bc All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272) drh 2007-08-22 22:04:37 +00:00
  • f3a65f7e44 The malloc.test script now passes all tests with no errors. (CVS 4271) drh 2007-08-22 20:18:21 +00:00
  • dd97a49c1a Fix a bug in the logic for journaling pages when the device sector-size is greater than the page size. (CVS 4270) danielk1977 2007-08-22 18:54:32 +00:00
  • cab5ed7a57 Get the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269) drh 2007-08-22 11:41:18 +00:00
  • c7b6017c8a Add code for the atomic-write optimisation. Disabled by default. (CVS 4268) danielk1977 2007-08-22 11:22:03 +00:00
  • 1f12f9aa30 Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267) drh 2007-08-22 02:57:16 +00:00
  • 27641703cc A complete run of quick.test with mutex debugging enabled. (CVS 4266) drh 2007-08-22 02:56:42 +00:00
  • 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) drh 2007-08-22 00:39:19 +00:00
  • 32bc3f6e01 All mutexing and locking appears to be in place. Now we just have to test it and make it all work. (CVS 4264) drh 2007-08-21 20:25:39 +00:00
  • 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) drh 2007-08-21 19:33:56 +00:00
  • e30f442622 Adding more thread locking code. This is an incremental check-in. (CVS 4262) drh 2007-08-21 16:15:55 +00:00
  • 605264d2d8 Readded the sqlite3_open_v2() interface. No test cases yet. Additional progress toward adding mutexes to all interfaces. (CVS 4261) drh 2007-08-21 15:13:19 +00:00
  • 7a2b1eeb7f Delay opening temporary pager files until they are first written. (CVS 4260) danielk1977 2007-08-21 14:27:01 +00:00
  • 51fc347a2e Remove the obsolete static mutexes. Use only the lastest static mutex code. (CVS 4259) drh 2007-08-21 13:51:23 +00:00
  • 46abae817e Add the tests that go with the previous commit. (CVS 4258) danielk1977 2007-08-21 13:30:07 +00:00
  • 6e465eb0fc Avoid journalling an extra page when a btree insert operation uses the 'quick-balance' trick. (CVS 4257) danielk1977 2007-08-21 13:11:00 +00:00
  • f1da17a388 Fix some problems in the crash-test backend. (CVS 4256) danielk1977 2007-08-21 13:07:46 +00:00
  • 29278e3dbb Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) drh 2007-08-21 10:44:15 +00:00
  • a2451e2255 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) drh 2007-08-20 23:50:24 +00:00
  • d677b3d688 Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) drh 2007-08-20 22:48:41 +00:00
  • 7e3c77df0d Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252) shess 2007-08-20 17:52:59 +00:00
  • db00b6aebb Replicate the fts2*.test files as fts3a*.test, and convert fts2 to fts3 in the text of the files. (CVS 4251) shess 2007-08-20 17:38:42 +00:00
  • 69c4ae2413 Add support for building with fts3. (CVS 4250) shess 2007-08-20 17:37:47 +00:00
  • acce22f5c7 Copy fts2 to fts3, renaming, and replacing references to fts2 with fts3, including capitalization variants. (CVS 4249) shess 2007-08-20 17:37:02 +00:00
  • 2a6bdf6d5b Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248) danielk1977 2007-08-20 16:07:00 +00:00
  • 967a4a1c96 Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247) danielk1977 2007-08-20 14:23:44 +00:00
  • abddb0c8c4 Bug fix in BTree shared cache locking code. (CVS 4246) drh 2007-08-20 13:14:28 +00:00
  • 482ea18fde Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245) drh 2007-08-20 11:12:40 +00:00
  • ad94b58a5e Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244) danielk1977 2007-08-20 06:44:22 +00:00
  • f036aef061 Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243) danielk1977 2007-08-20 05:36:51 +00:00
  • fee2d25a70 Further progress on migration to sqlite3_vfs. (CVS 4242) danielk1977 2007-08-18 10:59:19 +00:00
  • 90949c2003 Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241) danielk1977 2007-08-17 16:50:38 +00:00
  • b4b47411ab Begin migration to using sqlite3_vfs interface. (CVS 4240) danielk1977 2007-08-17 15:53:36 +00:00
  • e53831d644 Begin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we get an assertion fault on the shared cache testing. (CVS 4239) drh 2007-08-17 01:14:38 +00:00
  • 6bdec4afb4 Change the design of the mutex interface to allow for both "fast" and "recursive" mutexes. (CVS 4238) drh 2007-08-16 19:40:16 +00:00
  • dce8bdb8c0 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) drh 2007-08-16 13:01:44 +00:00
  • abb6fcabcb Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236) drh 2007-08-16 12:24:01 +00:00
  • 31dad9da7e Fix some more small problems introduced by recent refactoring. (CVS 4235) danielk1977 2007-08-16 11:36:15 +00:00
  • c6cc77d368 Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234) danielk1977 2007-08-16 10:36:33 +00:00
  • 1e5369531e More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) danielk1977 2007-08-16 10:09:01 +00:00
  • 9fb3ecbc5b Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232) danielk1977 2007-08-16 04:39:01 +00:00
  • 174357527a 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) drh 2007-08-16 04:30:38 +00:00
  • 0e6f1546b0 Enhancements and smoke testing of the new memory allocation subsystem. Have not yet cut it over to the core, though. (CVS 4230) drh 2007-08-15 20:41:28 +00:00
  • 2f999a6758 Test infrastructure for the new memory subsystem. (CVS 4229) drh 2007-08-15 19:16:43 +00:00
  • 6207906027 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) danielk1977 2007-08-15 17:08:46 +00:00
  • 4c3645c601 Add a debugging memory allocator. (CVS 4227) drh 2007-08-15 17:07:57 +00:00
  • 90f6a5beff Add initial implementations of mutex and memory subsystem modules. (CVS 4226) drh 2007-08-15 13:04:54 +00:00
  • d84f946be8 Revisions to the interface design for 3.5. (CVS 4225) drh 2007-08-15 11:28:56 +00:00
  • 871f6ca15a Clarify documentation on sqlite3_interrupt(). (CVS 4224) drh 2007-08-14 18:03:14 +00:00