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:
commit
527e1b29c0
|
@ -542,7 +542,7 @@ int32_t taosFsyncFile(TdFilePtr pFile) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pFile->fp != NULL) return fflush(pFile->fp);
|
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;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue