/ Check-in [ac1432b3]
Login

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

Overview
Comment:Fix a bug in the detection of iOS when setting the default mmap_limit.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental-mmap
Files: files | file ages | folders
SHA1: ac1432b3a8e968be4cbc138b4a35f34187c0c36f
User & Date: drh 2013-04-03 13:38:46
Context
2013-04-03
20:04
Remove an unreachable branch in the direct blob I/O logic of btree.c. check-in: f97d7274 user: drh tags: experimental-mmap
13:38
Fix a bug in the detection of iOS when setting the default mmap_limit. check-in: ac1432b3 user: drh tags: experimental-mmap
13:09
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. check-in: 2d9f1327 user: drh tags: experimental-mmap
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteLimit.h.

   208    208   #endif
   209    209   
   210    210   /*
   211    211   ** Default maximum size of memory used by xFetch in the VFS.
   212    212   */
   213    213   #ifdef __APPLE__
   214    214   # include <TargetConditionals.h>
   215         -# if defined(TARGET_OS_IPHONE)
          215  +# if TARGET_OS_IPHONE
   216    216   #   define SQLITE_DEFAULT_MMAP_LIMIT 0
   217    217   # endif
   218    218   #endif
   219    219   #ifndef SQLITE_DEFAULT_MMAP_LIMIT
   220    220   # if defined(__linux__) \
   221    221     || defined(_WIN32) \
   222    222     || (defined(__APPLE__) && defined(__MACH__)) \
   223    223     || defined(__sun)
   224    224   #   define SQLITE_DEFAULT_MMAP_LIMIT 268435456 /* = 256*1024*1024 */
   225    225   # else
   226    226   #   define SQLITE_DEFAULT_MMAP_LIMIT 0
   227    227   # endif
   228    228   #endif