[TD-13756]<fix>: file system fp error.

This commit is contained in:
afwerar 2022-03-08 10:14:30 +08:00
parent c906bc2841
commit 13769072cb
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