mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user