/ Check-in [d94db3fd]
Login

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

Overview
Comment:Pull in the posix_fallocate() change from trunk.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nextgen-query-plan-exp
Files: files | file ages | folders
SHA1:d94db3fd921890ab1d6414ab629410ae50779686
User & Date: drh 2013-06-20 14:17:39
Context
2013-06-20
17:32
Add a NEVER() macro and an explanation comment around an unreachable branch in the STAT3 logic. check-in: 604c3c5d user: drh tags: nextgen-query-plan-exp
14:17
Pull in the posix_fallocate() change from trunk. check-in: d94db3fd user: drh tags: nextgen-query-plan-exp
14:07
Disable posix_fallocate() for all systems, all the time, unless the HAVE_POSIX_FALLOCATE compile-time macro is supplied. check-in: b6744622 user: drh tags: trunk
2013-06-19
23:48
Merge in trunk changes to os_unix.c that allow the code to build on unix platforms that lack posix_fallocate(). check-in: bf576406 user: drh tags: nextgen-query-plan-exp
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

    42     42   **   *  Locking primitives for the proxy uber-locking-method. (MacOSX only)
    43     43   **   *  Definitions of sqlite3_vfs objects for all locking methods
    44     44   **      plus implementations of sqlite3_os_init() and sqlite3_os_end().
    45     45   */
    46     46   #include "sqliteInt.h"
    47     47   #if SQLITE_OS_UNIX              /* This file is used on unix only */
    48     48   
    49         -/* Use posix_fallocate() if it is available
    50         -*/
    51         -#if !defined(HAVE_POSIX_FALLOCATE) && defined(__linux__)
    52         -# define HAVE_POSIX_FALLOCATE 1
    53         -#endif
    54         -
    55     49   /*
    56     50   ** There are various methods for file locking used for concurrency
    57     51   ** control:
    58     52   **
    59     53   **   1. POSIX locking (the default),
    60     54   **   2. No locking,
    61     55   **   3. Dot-file locking,