Merge branch 'enh/TD-31375-3.0' of https://github.com/taosdata/TDengine into enh/TD-31375-3.0

This commit is contained in:
kailixu 2024-08-13 09:22:58 +08:00
commit c9a4466422
1 changed files with 2 additions and 0 deletions

View File

@ -1148,6 +1148,7 @@ bool lastErrorIsFileNotExist() { return terrno == TAOS_SYSTEM_ERROR(ENOENT); }
#endif // WINDOWS
TdFilePtr taosOpenFile(const char *path, int32_t tdFileOptions) {
STUB_RAND_IO_ERR(NULL)
FILE *fp = NULL;
#ifdef WINDOWS
HANDLE hFile = NULL;
@ -1600,6 +1601,7 @@ int32_t taosLinkFile(char *src, char *dst) {
}
FILE *taosOpenCFile(const char *filename, const char *mode) {
STUB_RAND_IO_ERR(NULL)
FILE *f = fopen(filename, mode);
if (NULL == f) {
terrno = TAOS_SYSTEM_ERROR(errno);