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

This commit is contained in:
afwerar 2022-03-02 15:28:40 +08:00
parent fd8fb4daa0
commit 149cf94223
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ int64_t taosWriteFile(TdFilePtr pFile, const void *buf, int64_t count) {
nleft -= nwritten; nleft -= nwritten;
tbuf += nwritten; tbuf += nwritten;
} }
fsync(pFile->fd);
return count; return count;
} }