浏览代码

Merge pull request #707 from qiaoqidui/master

[SQLite] fix fdatasync bug
Bernard Xiong 8 年之前
父节点
当前提交
0a0f04069a
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c

+ 1 - 5
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