From c0fffd39f4f69c64de43e73f74c013468b3654a2 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Mon, 28 Feb 2022 23:23:33 +0800 Subject: [PATCH] [TD-13062]: file system add stream. --- source/os/src/osFile.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/os/src/osFile.c b/source/os/src/osFile.c index 4c040e4d7b..b5f41719ff 100644 --- a/source/os/src/osFile.c +++ b/source/os/src/osFile.c @@ -187,7 +187,6 @@ int32_t taosStatFile(const char *path, int64_t *size, int32_t *mtime) { void autoDelFileListAdd(const char *path) { return; } TdFilePtr taosOpenFile(const char *path, int32_t tdFileOptions) { - printf("%s(%d) %s path=%s tdFileOptions=%d\n", __FILE__, __LINE__,__func__,path,tdFileOptions); #if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32) return NULL; #else @@ -205,7 +204,6 @@ TdFilePtr taosOpenFile(const char *path, int32_t tdFileOptions) { assert(!(tdFileOptions & TD_FILE_EXCL)); fp = fopen(path, mode); if (fp == NULL) { - printf("%s(%d) %s\n", __FILE__, __LINE__,__func__); return NULL; } } else { @@ -224,7 +222,6 @@ TdFilePtr taosOpenFile(const char *path, int32_t tdFileOptions) { access |= (tdFileOptions & TD_FILE_EXCL) ? O_EXCL : 0; fd = open(path, access, S_IRWXU | S_IRWXG | S_IRWXO); if (fd == -1) { - printf("%s(%d) %s access=%d\n", __FILE__, __LINE__,__func__,access); return NULL; } } @@ -237,13 +234,11 @@ TdFilePtr taosOpenFile(const char *path, int32_t tdFileOptions) { if (pFile == NULL) { if (fd >= 0) close(fd); if (fp != NULL) fclose(fp); - printf("%s(%d) %s\n", __FILE__, __LINE__,__func__); return NULL; } pFile->fd = fd; pFile->fp = fp; pFile->refId = 0; - printf("%s(%d) %s\n", __FILE__, __LINE__,__func__); return pFile; #endif }