drh
a478b3fa80
Try to use mmap() to speed access to the database file on windows, linux,
...
and mac.
FossilOrigin-Name: fff2be60779571c8fb89158db976ec3755e9a223
2013-04-04 00:40:17 +00:00
drh
b0a8ea046a
Release resources prior to bailing out of the btreeCreateTable() routine
...
following an OOM error.
FossilOrigin-Name: b2a72be9bab77f050bef75477a278a6294d3e854
2013-04-03 21:23:28 +00:00
drh
370c9f498d
Remove an unreachable branch in the direct blob I/O logic of btree.c.
...
FossilOrigin-Name: f97d7274f48e3bb98ed17eae11abb55064134874
2013-04-03 20:04:04 +00:00
drh
716d6d2da7
Fix a bug in the detection of iOS when setting the default mmap_limit.
...
FossilOrigin-Name: ac1432b3a8e968be4cbc138b4a35f34187c0c36f
2013-04-03 13:38:46 +00:00
drh
34f7490311
Change the mmap_limit pragma to report the new limit, or to report the
...
existing limit if called with no arguments. Report the default mmap_limit
as part of PRAGMA compile_options. Set the default mmmap_limit to 0 for
all systems other than linux, mac, windows, and solaris.
FossilOrigin-Name: 2d9f1327fe79e40435ce1e2594d7cd9a5aea0ef2
2013-04-03 13:09:18 +00:00
dan
6c96946475
Remove the restriction on using xFetch to load the root pages of tables and indexes. It appears to have been based on a misconception.
...
FossilOrigin-Name: 5b082efead488a2fccc18171e640e0aa5252d1d0
2013-04-03 11:52:16 +00:00
dan
f7679ad19e
When moving a page to make way for the root page of a new table or index in an auto-vacuum database, save the positions of any cursors that may be holding xFetch references to the page being moved.
...
FossilOrigin-Name: 9d9b1da54a555e8fb6037d63d1952458c12956d2
2013-04-03 11:38:36 +00:00
dan
227a1c482c
In btree.c, save the positions of other cursors open on the same table when writing via an incremental blob handle. Otherwise, they may be left holding an out-of-date xFetch page reference.
...
FossilOrigin-Name: 3f09fba18f7e61e21381ffea13c31b968efd7d77
2013-04-03 11:17:39 +00:00
drh
2b8246e3e2
Initialize the mmap_limit of temporary files to the configured mmap_limit.
...
FossilOrigin-Name: 24bab7596bb7385981a5d331df5eeb05353547f7
2013-04-03 10:50:02 +00:00
drh
7e36962e6c
Make use of xFetch, if it is available when doing a VACUUM or a backup.
...
FossilOrigin-Name: 83bc37af07857960c11275891f853a358dcbbf05
2013-04-03 03:53:15 +00:00
drh
7d9f3943ba
Add the -mmap option to the command-line shell, for setting the default
...
mmap_limit.
FossilOrigin-Name: fc30d06c94c8212abb0477fb4cec4520d05bea34
2013-04-03 01:26:54 +00:00
drh
85830a70c2
Fix the unix driver to check defined(_BSD_SOURCE) rather than just the plain
...
_BSD_SOURCE macro. This fixes the build for OpenBSD.
FossilOrigin-Name: 1dd42ef4144ee08fb4ee1676d934a56a0e34bac2
2013-04-03 00:42:01 +00:00
dan
48ccef8059
Fix a resource leak in os_unix.c.
...
FossilOrigin-Name: b29cda03fe4e8d8f5b5acbbea2d69f284a2bdf23
2013-04-02 20:55:01 +00:00
drh
c3d53189fc
Adjustments to mmap1.test so that it works better on windows. It still gets
...
some answers wrong, but it no longer crashes.
FossilOrigin-Name: ee8d3ceeec40d84adb8798f084b6f1215ab56d92
2013-04-02 20:29:33 +00:00
dan
81d1765ad8
Fix a bug in mmap2.test that was leaving an invalid sqlite3_log() callback installed, causing a crash.
...
FossilOrigin-Name: c0cdaa07355f51bd217881b5b91ec2a609fa56f4
2013-04-02 20:19:22 +00:00
mistachkin
a9d79ae95d
Add assert to the Windows VFS pertaining to the size of the SIZE_T type.
...
FossilOrigin-Name: 4eeea58354e21797ca1f4dc4ea785d0330381f0b
2013-04-02 20:13:04 +00:00
dan
db082408c6
Add test cases to mmap1.test and pagerfault.test.
...
FossilOrigin-Name: 3050136be962427cc4dcced6077ef29b2a941405
2013-04-02 18:33:55 +00:00
dan
d409792838
Change an assert in pager.c to acknowledge that it is possible for sqlite3PagerRollback() to return SQLITE_CORRUPT.
...
FossilOrigin-Name: d641d3d20d80fdb86d91de31fcf2eb5ca3c5c715
2013-04-02 18:31:29 +00:00
drh
a2c16c084a
Fix the build for Mac.
...
FossilOrigin-Name: d36ce0bbad58445c983597ee93438fe07b659cdc
2013-04-02 18:25:04 +00:00
dan
f6653871b2
Add new test file btreefault.test.
...
FossilOrigin-Name: 7fe908afeba16f64edc16824c67b396138581a8f
2013-04-02 15:37:30 +00:00
drh
07fa864d15
Fix a faulty assert() in the os_win.c VFS.
...
FossilOrigin-Name: fd6ee54969322203c02ce9bd8744e095faf6a69c
2013-04-02 14:37:40 +00:00
drh
936c6d7e9e
If the SQLITE_TRACE_SIZE_LIMIT compile-time parameter is set to a positive
...
integer then limit the expansion of strings and blobs in trace output to
approximately that many bytes.
FossilOrigin-Name: e5b710849dd66673ba0e0d935b103cb29abfcc4b
2013-04-02 13:56:53 +00:00
dan
4ff7bc45c6
Add test cases for errors in mmap() or mremap() is os_unix.c.
...
FossilOrigin-Name: 3098a3c1e7305033904a496ef534cb312a876fab
2013-04-02 12:04:09 +00:00
drh
a3a2b3bdc0
Proposed template preprocessor magic for activating mmap only on platforms
...
where we know it works.
FossilOrigin-Name: d96272f031102514b02bd839aac9e37618872200
2013-04-02 10:29:13 +00:00
drh
6d81449fc6
Reorder two conditions to make coverage testing easier.
...
FossilOrigin-Name: 793ba4e996426522eeaa86589a9e974fa1fc1522
2013-04-02 01:45:10 +00:00
drh
092d993cb7
Remove an unreachable condition from pager.c.
...
FossilOrigin-Name: 3628e86bf131cb205f08a4b299d84007cd6b25c3
2013-04-02 00:41:18 +00:00
drh
98d2038fc2
Always send the SQLITE_FCNTL_MMAP_LIMIT pragma to the VFS, even if the limit
...
is zero and even if the VFS does not support xFetch().
FossilOrigin-Name: 01ffdabbad30f1c157f2b33b1e85ee4d6c4632dd
2013-04-02 00:15:23 +00:00
drh
3861f546e3
Remove a debugging printf() accidently left in the previous check-in.
...
FossilOrigin-Name: 8198cdd8ac5dcc1c677fffa869ac965186b96abf
2013-04-01 22:42:48 +00:00
drh
a1f42c7c32
Add the SQLITE_CONFIG_MMAP_LIMIT configuration option for overriding the
...
SQLITE_DEFAULT_MMAP_LIMIT compile-time setting. Enhance "PRAGMA mmap_limit"
so that without a specific database name, it sets the limit on all database
files and changes the default for any future databases that might be added
using ATTACH.
FossilOrigin-Name: 78141d0a16dd1d56b575fccd149de7fa789cb06c
2013-04-01 22:38:06 +00:00
drh
a539c8a464
Add a comment to xUnfetch on windows to say that the call to winUnmapfile()
...
might be unnecessary.
FossilOrigin-Name: e3c63c31a21b27806592d066a013a111b280c61f
2013-04-01 18:25:48 +00:00
drh
db56bcbe42
In windows, round down the size of the memory mapped region to the next
...
smaller multiple of the page size.
FossilOrigin-Name: 0e44ed1badde6d766f18d1373d968e5b286b15bd
2013-04-01 18:15:50 +00:00
dan
57d6b25ec9
Merge accidental fork.
...
FossilOrigin-Name: 5f4437c0e35c8aa740515aac3e81e0146716d2bb
2013-04-01 17:58:10 +00:00
dan
e6ecd6630d
Attempt to emulate mremap() on non-Linux systems by allocating a second mapping immediately following the first in virtual memory.
...
FossilOrigin-Name: 4d67433db8fb4754ae6b192945e479f3d7bad579
2013-04-01 17:56:59 +00:00
drh
f9d18e472b
Bug fix in the winMapfile() subroutine: Be sure to record the map object
...
handle in the sqlite3_file object.
FossilOrigin-Name: ee4d188e207efa24a26776fa4f025c6ac39cce73
2013-04-01 17:56:28 +00:00
drh
5175b324b8
Add xFetch and xUnfetch methods to the os_win.c VFS.
...
FossilOrigin-Name: a1653a257d6af6e8b10c819e68b12f6c2f485811
2013-04-01 17:22:51 +00:00
dan
f55a4cf80c
Ensure that a checkpoint does not use an out-of-date mapping.
...
FossilOrigin-Name: a1040f0397d57855500926494c978623286ddc77
2013-04-01 16:56:41 +00:00
dan
0943f0bdc8
Fix a typo in a log message in wal.c.
...
FossilOrigin-Name: 83fc48d16572443373e5de62adbd4cd53c2f7786
2013-04-01 14:35:01 +00:00
dan
71be5c5c87
Fix a problem in btree.c that could cause a crash following an OOM.
...
FossilOrigin-Name: b724aa5889f2e09cf0cbef133a672e6486755104
2013-04-01 14:29:33 +00:00
mistachkin
fde3b1c715
For the clean target, tidy up a couple more generated (or copied) source files.
...
FossilOrigin-Name: 5687e5ee7bafa00d2b353c3eda1e5dfb219cb185
2013-03-29 19:52:04 +00:00
drh
50126644a5
Version 3.7.16.1
...
FossilOrigin-Name: 527231bc67285f01fb18d4451b28f61da3c4e39d
2013-03-29 13:44:34 +00:00
drh
12886632c6
Adjustment to an extreme corner case in the sqlite3Atoi64() routine.
...
FossilOrigin-Name: 39534b4baa53b9360696a9d5ee8cc2108af34592
2013-03-28 11:40:14 +00:00
drh
4b11bad358
Fix harmless compiler warnings coming from MSVC64 in test code. No
...
changes to the core.
FossilOrigin-Name: 274d2a22660c7b34b8bbd85f3c29cbafbcb1b4e7
2013-03-27 20:41:15 +00:00
drh
ab5190a46c
Increment the version number to 3.7.16.1.
...
FossilOrigin-Name: 7e32eb7b66290ba7323520f7ea92ffa584ee7193
2013-03-27 19:46:33 +00:00
drh
d9883570f5
In order to optimize out the ORDER BY clause,
...
outer loops must generate values for ORDER BY terms that are unique or else
the inner loops must generate no more than a single row.
Fix for ticket [a179fe7465].
FossilOrigin-Name: 2936f7466e162dfb003bda26d35358d1b3063112
2013-03-27 17:20:10 +00:00
drh
e6a8bbbb62
Restore additional ORDER BY optimizations that where broken by the
...
recent ORDER BY fix.
FossilOrigin-Name: c77ee6e20d3a8c91a8bf4c9063c36a95c70e17cf
2013-03-27 16:42:21 +00:00
drh
2b6c874b13
Improved optimization of ORDER BY.
...
FossilOrigin-Name: 97e5c70f2f19a1bca70dd2221b757b9e5418fce0
2013-03-27 16:05:30 +00:00
drh
8a1b87cb97
A fix an test-case for the ORDER BY problem identified by ticket [a179fe7465].
...
This change causes sorting to occur in some cases where it is not strictly
necessary. Further work is needed to avoid those extra sorts.
FossilOrigin-Name: 488089e615e375c01b31544f06e801af950ae3db
2013-03-27 15:04:28 +00:00
drh
138eeeb1b0
Candidate fix for ticket [6bfb98dfc0c]: Make sure invalid cursors drop all
...
references to database pages prior to doing any insert or update.
FossilOrigin-Name: 322a5f086d9ee46017f750df81527799a54ae258
2013-03-27 03:15:23 +00:00
drh
6c5696381e
Fix a comment in os_unix.c. No code changes.
...
FossilOrigin-Name: 72813b8ec924b91583c679668f7c4561dff82a02
2013-03-26 18:48:11 +00:00
drh
c86e51358b
Change the name of the Pager.pFree field to Pager.pMmapFreelist.
...
FossilOrigin-Name: 611bd824c24a60d298f28705de323fa2e813a308
2013-03-26 14:36:11 +00:00