Let sqlite use fdatasync() on Linux-based systems
commit195310ab0b38de5704b9fa7ec9a804d68d3cdb88
authorhashimoto <hashimoto@chromium.org>
Fri, 27 Mar 2015 23:39:18 +0000 (27 16:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Mar 2015 23:39:53 +0000 (27 23:39 +0000)
tree5ccd83dd8bb9d320cd777e5570cdc9e905c973be
parentcbff2a79e3aafa333159dbc467efcb8a5dc124f7
Let sqlite use fdatasync() on Linux-based systems

fdatasync() should be faster than fsync().

From sqlite3.c:
/*
** We do not trust systems to provide a working fdatasync().  Some do.
** 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
*/

BUG=469071

Review URL: https://codereview.chromium.org/1035903002

Cr-Commit-Position: refs/heads/master@{#322679}
third_party/sqlite/BUILD.gn
third_party/sqlite/sqlite.gyp