diff options
author | drh <drh@noemail.net> | 2011-08-31 21:01:55 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-08-31 21:01:55 +0000 |
commit | 20f8e13b4474622d9dced4bb8c2422656f114f22 (patch) | |
tree | 10b51e9aece7fbd9d742b633bc5d9636abf273c4 /src/os_unix.c | |
parent | 5a201fb41df348845f3db85a2d00e59e5d7a16c0 (diff) | |
download | sqlite-20f8e13b4474622d9dced4bb8c2422656f114f22.tar.gz sqlite-20f8e13b4474622d9dced4bb8c2422656f114f22.zip |
Formerly, we enabled fdatasync() on linux only. But now we learn that
fdatasync() is not supported on Android. So we disable fdatasync() on
Linux too. It can be reenabled at compile-time for those who really need it.
FossilOrigin-Name: 70b5b309568ac55565558d5456aca1e431cfd26b
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 1c5a5bad5..d85a7949b 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3146,11 +3146,11 @@ int sqlite3_fullsync_count = 0; /* ** We do not trust systems to provide a working fdatasync(). Some do. -** Others do no. To be safe, we will stick with the (slower) fsync(). -** If you know that your system does support fdatasync() correctly, +** Others do no. To be safe, we will stick with the (slightly slower) +** fsync(). If you know that your system does support fdatasync() correctly, ** then simply compile with -Dfdatasync=fdatasync */ -#if !defined(fdatasync) && !defined(__linux__) +#if !defined(fdatasync) # define fdatasync fsync #endif |