Merge pull request #10607 from taosdata/fix/ZhiqiangWang/TD-13756-file-system-fp-error

[TD-13756]<fix>: file system fp error.
This commit is contained in:
Zhiqiang Wang 2022-03-08 10:22:07 +08:00 committed by GitHub
commit 527e1b29c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ int32_t taosFsyncFile(TdFilePtr pFile) {
}
if (pFile->fp != NULL) return fflush(pFile->fp);
if (pFile->fp >= 0) return fsync(pFile->fd);
if (pFile->fd >= 0) return fsync(pFile->fd);
return 0;
#endif