/ Check-in [ea1404a1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ea1404a10abd7f68e1f8e0708c8a3199d1f79665
User & Date: drh 2013-04-15 17:03:42
Context
2013-04-15
20:08
Expand scope of the SQLITE_MAX_MMAP_SIZE define for the Win32 VFS. check-in: f4b8faab user: mistachkin tags: trunk
17:03
Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. check-in: ea1404a1 user: drh tags: trunk
13:10
Fix a formatting typo in a comment. No changes to code. check-in: 34124249 user: drh tags: trunk
Changes
Unified Diffs Side-by-Side Diffs Patch

Changes to mptest/config01.test.

Changes to mptest/config02.test.

Changes to src/btree.c.

Changes to src/ctime.c.

Changes to src/global.c.

Changes to src/main.c.

Changes to src/os.c.

Changes to src/os_unix.c.

Changes to src/os_win.c.

Changes to src/pager.c.

Changes to src/pragma.c.

Changes to src/shell.c.

Changes to src/sqlite.h.in.

Changes to src/sqliteInt.h.

Changes to src/sqliteLimit.h.

Changes to src/test_config.c.

Changes to test/dbstatus2.test.

Changes to test/exclusive2.test.

Changes to test/func.test.

Changes to test/incrblob.test.

Changes to test/mmap1.test.

Changes to test/pager1.test.

Changes to test/pagerfault.test.

Changes to test/pageropt.test.

Changes to test/permutations.test.

Changes to test/sysfault.test.

Changes to test/wal.test.

Changes to test/wal5.test.

Changes to test/win32lock.test.