more code

This commit is contained in:
Hongze Cheng 2023-06-15 14:23:12 +08:00
parent e34ff2a894
commit eacd2ac234
2 changed files with 4 additions and 1 deletions

View File

@ -684,7 +684,7 @@ int32_t tsdbFSCreateRefSnapshot(STFileSystem *fs, TFileSetArray **fsetArr) {
int32_t code = 0;
STFileSet *fset, *fset1;
fsetArr[0] = taosMemoryCalloc(sizeof(*fsetArr[0]));
fsetArr[0] = taosMemoryMalloc(sizeof(*fsetArr[0]));
if (fsetArr[0] == NULL) return TSDB_CODE_OUT_OF_MEMORY;
taosThreadRwlockRdlock(&fs->tsdb->rwLock);

View File

@ -36,6 +36,9 @@ typedef enum {
TSDB_FOP_MODIFY,
} tsdb_fop_t;
#define TFILE_SET(fid_) \
(STFileSet) { .fid = (fid_) }
// init/clear
int32_t tsdbTFileSetInit(int32_t fid, STFileSet **fset);
int32_t tsdbTFileSetInitEx(STsdb *pTsdb, const STFileSet *fset1, STFileSet **fset);