diff --git a/src/tsdb/src/tsdbFile.c b/src/tsdb/src/tsdbFile.c index 167cde55585c31d5931da1fe30c851c577d39b7e..b200b7f0428815afbf6891c3164f23eb11a25a3b 100644 --- a/src/tsdb/src/tsdbFile.c +++ b/src/tsdb/src/tsdbFile.c @@ -81,8 +81,8 @@ void tsdbCloseFileH(STsdbRepo *pRepo) { for (int type = 0; type < TSDB_FILE_TYPE_MAX; type++) { tsdbCloseFile(&(pFGroup->files[type])); } + tfsDecDiskFile(pFGroup->files[0].file.level, pFGroup->files[0].file.level, TSDB_FILE_TYPE_MAX); } - // TODO: delete each files } // SFileGroup ===========================================