提交 0a0f0406 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #707 from qiaoqidui/master

[SQLite] fix fdatasync bug
...@@ -24400,13 +24400,9 @@ SQLITE_API int sqlite3_fullsync_count = 0; ...@@ -24400,13 +24400,9 @@ SQLITE_API int sqlite3_fullsync_count = 0;
** then simply compile with -Dfdatasync=fdatasync ** then simply compile with -Dfdatasync=fdatasync
*/ */
#if !defined(fdatasync) #if !defined(fdatasync)
#include "dfs.h"
#include "dfs_file.h"
int fdatasync(fd) int fdatasync(fd)
{ {
struct dfs_fd *dfs_fd; fsync(fd);
dfs_fd = fd_get(fd);
return dfs_file_flush(dfs_fd);
} }
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册