diff --git a/include/libs/tfs/tfs.h b/include/libs/tfs/tfs.h index 11e33a3af7..6c850d1016 100644 --- a/include/libs/tfs/tfs.h +++ b/include/libs/tfs/tfs.h @@ -73,7 +73,7 @@ typedef struct { #define tfsopen(pf, flags) open(TFILE_NAME(pf), flags) #define tfsclose(fd) close(fd) #define tfsremove(pf) remove(TFILE_NAME(pf)) -#define tfscopy(sf, df) taosCopy(TFILE_NAME(sf), TFILE_NAME(df)) +#define tfscopy(sf, df) taosCopyFile(TFILE_NAME(sf), TFILE_NAME(df)) #define tfsrename(sf, df) taosRename(TFILE_NAME(sf), TFILE_NAME(df)) void tfsInitFile(TFILE *pf, int level, int id, const char *bname);