danielk1977
54f0198e47
Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970)
...
FossilOrigin-Name: e0b022e5b2bfd272b4e25cd7a7b472206a118bbe
2006-01-18 15:25:17 +00:00
danielk1977
8212defca2
Fix problems compiling with memory-management enabled. Ticket #1619 . (CVS 2960)
...
FossilOrigin-Name: 36b03259654ffa9b14ebe1093984b29e9efbd56c
2006-01-16 15:32:23 +00:00
danielk1977
bab45c647d
Fix some of the issues raised in #1615 . (CVS 2959)
...
FossilOrigin-Name: 0d5d83bcbd65dd7ae968909acfee075185e49c38
2006-01-16 15:14:27 +00:00
danielk1977
a96a7103b2
Run the tests in shared.test a second time using an autovacuum database. (CVS 2957)
...
FossilOrigin-Name: 9927522923558348a846e033b92100c0ed4ee556
2006-01-16 12:46:41 +00:00
danielk1977
efaaf57974
Clarify error handling in pager code. No functional changes. (CVS 2956)
...
FossilOrigin-Name: 7b48836214ea3152f46e2dffb097ae7ea14901f4
2006-01-16 11:29:19 +00:00
drh
3b59a5cc5f
Code size reductions in the pager. (CVS 2952)
...
FossilOrigin-Name: c7da3aa9bdf7b788424633015000955606e93f48
2006-01-15 20:28:28 +00:00
drh
6f7adc8a80
Automatically deallocate thread-specific data when it is no longer
...
being used. Ticket #1601 . Also implemented the suggestion of
ticket #1603 . Memory management is now off by default at compile-time.
The sqlite3_enable_memory_management() API has been removed. (CVS 2919)
FossilOrigin-Name: 5d9c6aa964305c3f36741ff0058da5b5f3ce0d24
2006-01-11 21:41:20 +00:00
drh
97b5748487
Combine multiple small calls to sqlite3OsWrite into one larger call. (CVS 2910)
...
FossilOrigin-Name: e6e6750c24dc8b87be96bdc0e93254d7f0700543
2006-01-10 20:32:32 +00:00
drh
29c636bc12
Added database server example code (untested). Fixed serveral bugs including
...
the autovacuum compile problem described by ticket #1593 . (CVS 2897)
FossilOrigin-Name: ec332d8822d1ac9673581a26ab2a2fce5f2554a3
2006-01-09 23:40:25 +00:00
danielk1977
52622828ce
Add a runtime interface to enable memory-management features. (CVS 2894)
...
FossilOrigin-Name: 44f8e3139aa3ad3fcce9028565dd9ad23bbe62a2
2006-01-09 09:59:49 +00:00
danielk1977
e501b89ada
Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893)
...
FossilOrigin-Name: 82b81f69c78cb3f54634d9aea4f6a838474dc5e5
2006-01-09 06:29:47 +00:00
drh
66560adab3
Change the OS interface layer to use traditional direct function call
...
implementations instead of the more complicated virtual function table.
Omit the asynchronous I/O demo. (CVS 2870)
FossilOrigin-Name: 2529c2e11fa1d345ec61f647e4f6fae20a7133d6
2006-01-06 14:32:19 +00:00
danielk1977
441b09ae55
Disable automatic invocation of sqlite3_release_memory() when a malloc() fails
...
in those cases where the global mutex is held. (CVS 2860)
FossilOrigin-Name: 6fdbb8b771e490f0d791326689245302c4fe18f5
2006-01-05 13:48:29 +00:00
danielk1977
aef0bf6429
Add part of the btree layer of the shared-cache feature. (CVS 2848)
...
FossilOrigin-Name: 2afcad990190af97d1ad0010f211a5ca8f0fd745
2005-12-30 16:28:01 +00:00
danielk1977
5591df558a
Add simple tests and fixes for sqlite3_soft_heap_limit() (CVS 2837)
...
FossilOrigin-Name: c2c5285442f4558dfca61b52f31b5a9cbefaed10
2005-12-20 09:19:37 +00:00
drh
8f9b728b62
Tentative fix for ticket #1567 : disable the sqlite3pager_dont_write()
...
optimization when a statement transaction is active. We continue to look
for a better fix. (CVS 2827)
FossilOrigin-Name: e6106cc133e5210bfa248d811122e9bf7d6f2b7c
2005-12-19 16:15:31 +00:00
danielk1977
0190d1da46
Add some very simple test cases (and resulting bug fixes) for release_memory(). (CVS 2826)
...
FossilOrigin-Name: 154282fca54bf03d310d6931660f99805bb5477f
2005-12-19 14:18:11 +00:00
danielk1977
13f7299bbe
Add the (untested) sqlite3_release_memory() function. (CVS 2825)
...
FossilOrigin-Name: 345addaa03d3bfa3429a59597fbd3addcff62e30
2005-12-18 08:51:22 +00:00
drh
2646da7e52
Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810)
...
FossilOrigin-Name: 83a59151559d9496d4f546e03e65087ea974717d
2005-12-09 20:02:05 +00:00
danielk1977
261919cc16
Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800)
...
FossilOrigin-Name: e1606658f1b4530e3001db4779b5669c8d13c853
2005-12-06 12:52:59 +00:00
drh
054889ec6d
Restructure the OS interface yet again. This time make the OsFile object
...
a virtual base class which is subclassed for unix, windows, and the crash
test simulator. Add the new file "os.c" for common os layer code. Move
all OS-specific routines into the sqlite3Os structure. (CVS 2795)
FossilOrigin-Name: bd8740d1aecba69e1b5d64d43db07e8ad8841f07
2005-11-30 03:20:31 +00:00
drh
9cbe635219
Make the OsFile structure opaque with its internal structure known only to
...
the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h
include files. The crash tests are broken by this patch. (CVS 2791)
FossilOrigin-Name: 058f31753871b16b40fe4048e3adcee411e0f87d
2005-11-29 03:13:21 +00:00
drh
d86959f588
Remove some vestiges of the old OS_TEST driver. (CVS 2787)
...
FossilOrigin-Name: 008f676f20c690255e5cb8ae01df47c5094ac240
2005-11-26 03:51:18 +00:00
drh
18839217da
Add an OS method for making copies of file descriptors. This fixes the
...
crash tests. (CVS 2786)
FossilOrigin-Name: 57a674fc71512f11393b8eb595961ec9465ba4e1
2005-11-26 03:43:23 +00:00
drh
9c06c95309
Modify the OS layer so that I/O routines are called through a virtual function
...
table. The os_test.c module has been replaced by test6.c. The crash tests
are busted now and need to be fixed. (CVS 2785)
FossilOrigin-Name: 1f69aec285dd8e26bd739d5e44bb50fe03a9682a
2005-11-26 00:25:00 +00:00
drh
152410fade
Work around a bug in MSVC++. Ticket #1513 . (CVS 2763)
...
FossilOrigin-Name: 6331860e7754be6e0d2a484d66427947c0781dd6
2005-11-05 15:11:22 +00:00
drh
c9ac5caa45
VACUUM works even on an empty database. Ticket #1512 . (CVS 2760)
...
FossilOrigin-Name: 1b6bf4188e8ebf55cf1972b7081f6d31bf525555
2005-11-04 22:03:30 +00:00
drh
4928570812
Changes to make corruption errors easier to track down. (CVS 2709)
...
FossilOrigin-Name: c07330000b9427a77f412918078beffa18de2c36
2005-09-17 15:20:26 +00:00
drh
267cb326e9
Do not journal the locking page which doing an autovacuum. Similar to the
...
problem of #1432 except that this one occurs on autovacuum instead of vacuum.
An assert() has been added to catch any future incidents of this type. (CVS 2704)
FossilOrigin-Name: 5b6dc12b7d25d999be5d282cd0b06e02e2bda765
2005-09-16 17:16:52 +00:00
danielk1977
15f411dbdd
Prevent the sqlite3_pagecount() function from ever returning the pending-byte
...
page. (CVS 2702)
FossilOrigin-Name: 35a8893537ae5faed6ee49270ac9c01a6010993f
2005-09-16 10:18:45 +00:00
drh
b4746b9e33
Defend against disk I/O errors that happen during an sqlite3OsSeek(). (CVS 2679)
...
FossilOrigin-Name: 461e3a0a27ff083b0bae10c9880e3b41bb85ee31
2005-09-09 01:32:06 +00:00
drh
eb796a7c8f
While doing a transaction comment, use fdatasync() instead of fsync() in
...
cases there the file size is unchanged. (CVS 2673)
FossilOrigin-Name: 3c555a87493128620ac967faf7c63c2a58856e9e
2005-09-08 12:38:41 +00:00
drh
2c8997b9a5
Disable synchronous writes to the master journal when PRAGMA synchronous=OFF
...
for all database files. Ticket #1375 . (CVS 2630)
FossilOrigin-Name: 644b96aa23de7e828280d35785db840a4fa9413d
2005-08-27 16:36:48 +00:00
drh
992f2d781d
Do not overwrite small files (less than 1024 bytes) that are not databases.
...
Ticket #1370 . (CVS 2606)
FossilOrigin-Name: 7f4302686e55f22b281d98a8a3b89300f4ce4eb6
2005-08-21 16:54:25 +00:00
drh
a4afb65cb7
Make sure there is only one busy counter. Ticket #1315 . (CVS 2543)
...
FossilOrigin-Name: af2a0ba4a38abf208db1ff6f018cf756de2afd5b
2005-07-09 02:16:02 +00:00
drh
af6df11f8a
Add tests to make sure statement journals are only opened when necessary. (CVS 2500)
...
FossilOrigin-Name: 914d6e6549446a6ddf25e5da57d2fe9446750625
2005-06-07 02:12:30 +00:00
drh
eb43e5c7b7
The cache_size pragma should not reset the synchronous pragma. Ticket #1260 . (CVS 2474)
...
FossilOrigin-Name: 2db2b32f269062b006ae5c4a302d116cdab8f9ec
2005-05-22 20:30:39 +00:00
drh
fcd35c7b8c
More structure rearrangements for additional size reductions. Ticket #1253 . (CVS 2468)
...
FossilOrigin-Name: 6b6e525b294a5bbf8a5e56a2f60aa096865aedbd
2005-05-21 02:48:08 +00:00
drh
6d156e464d
Reorder structure fields to reduce code footprint. Ticket #1253 . Need
...
to do more of this. (CVS 2467)
FossilOrigin-Name: 27025613bc2970b0c23e08fbe5251103794ab6cb
2005-05-20 20:11:20 +00:00
drh
1c7880e501
Do not allow the pagesize of :memory: databases to be changed. Silently
...
ignore PRAGMA page_size=N requests for :memory: databases.
Ticket #1144 and #1252 . (CVS 2466)
FossilOrigin-Name: f29a1d882623d8ff14f35a302aef63a16388bcb3
2005-05-20 20:01:55 +00:00
drh
2e66f0b972
Enhancements to allow for extensions. (CVS 2448)
...
FossilOrigin-Name: 6863703abcb2bf31d65792d4de9ae20aba2eadb5
2005-04-28 17:18:48 +00:00
drh
88b01a13c6
Fix another memory leak in the pager. (CVS 2425)
...
FossilOrigin-Name: 4ca11ca015d798655170593c1b76d312185d6ed2
2005-03-28 18:04:27 +00:00
danielk1977
634f298c89
Modifications to reduce memory consumption. (CVS 2422)
...
FossilOrigin-Name: 0fd5ce4eefdc429ce0493f15d0dba9e8a3a0b0e2
2005-03-28 08:44:07 +00:00
drh
dd5b2fa5f2
Fix some memory leaks that occur after a malloc failure. (CVS 2421)
...
FossilOrigin-Name: bcb5d72ef146b1019c72220701d385c7b0b5d0bd
2005-03-28 03:39:55 +00:00
danielk1977
6b456a2b46
Add function to recover from a malloc() failure. (CVS 2414)
...
FossilOrigin-Name: 1f9d10d7965c95d1e35f64cf4c3f128adabd41f2
2005-03-21 04:04:02 +00:00
danielk1977
e94ddc9e43
Assorted fixes to the handling of various malloc() failures. (CVS 2413)
...
FossilOrigin-Name: e7844a01c248e8d9204ea9214bec84c81dc07f32
2005-03-21 03:53:38 +00:00
drh
9636284e32
More changes for ticket #1171 after additional analysis. (CVS 2403)
...
FossilOrigin-Name: 0471d6b86fd67c22da832beb280b31305c5aa812
2005-03-20 22:47:56 +00:00
drh
41712ef171
Tentative fix for ticket #1171 . More research and testing needed. (CVS 2402)
...
FossilOrigin-Name: f0a39cee78472b93cce5304fc255285ddea7d2bf
2005-03-20 19:10:12 +00:00
drh
165ffe9708
When creating a new database, delete any preexisting journal that might be
...
left over from a prior database with the same name. Ticket #1152 . (CVS 2387)
FossilOrigin-Name: 856e2ec9688affbfe496cf184f460b18408e3dc0
2005-03-15 17:09:30 +00:00
drh
b8ef32c3e8
Be more aggressive about using the busy handler. Ticket #1159 . (CVS 2385)
...
FossilOrigin-Name: 644c6398e52481e5dda87671e1c196b26b1e4990
2005-03-14 02:01:49 +00:00