提交 c4a1bae7 编写于 作者: wafwerar's avatar wafwerar

[TD-13062]<fix>: file system write fsync error

上级 52bfe618
......@@ -296,6 +296,7 @@ int64_t taosWriteFile(TdFilePtr pFile, const void *buf, int64_t count) {
if (errno == EINTR) {
continue;
}
fflush(pFile->fp);
fsync(pFile->fd);
return -1;
}
......@@ -303,6 +304,7 @@ int64_t taosWriteFile(TdFilePtr pFile, const void *buf, int64_t count) {
tbuf += nwritten;
}
fflush(pFile->fp);
fsync(pFile->fd);
return count;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册