From fe56fad9e528ee66a0f8764b32b944a2447ad90a Mon Sep 17 00:00:00 2001 From: qiaoqidui <891062079@qq.com> Date: Sat, 25 Mar 2017 14:32:37 +0800 Subject: [PATCH] fix fdatasync bug --- components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c b/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c index 789d6d1f4a..c5ff2c897f 100644 --- a/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c +++ b/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c @@ -24400,13 +24400,9 @@ SQLITE_API int sqlite3_fullsync_count = 0; ** then simply compile with -Dfdatasync=fdatasync */ #if !defined(fdatasync) -#include "dfs.h" -#include "dfs_file.h" int fdatasync(fd) { - struct dfs_fd *dfs_fd; - dfs_fd = fd_get(fd); - return dfs_file_flush(dfs_fd); + fsync(fd); } #endif