From e60672d0194c674372e1e47e7fc9ee3b870e4823 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 13 Apr 2023 15:13:27 +0800 Subject: [PATCH] more code --- source/dnode/vnode/src/tsdb/dev/tsdbFS.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/dev/tsdbFS.c b/source/dnode/vnode/src/tsdb/dev/tsdbFS.c index d6823901f1..275fb1bd47 100644 --- a/source/dnode/vnode/src/tsdb/dev/tsdbFS.c +++ b/source/dnode/vnode/src/tsdb/dev/tsdbFS.c @@ -148,8 +148,8 @@ static int32_t fs_to_json_str(struct STFileSystem *pFS, char **ppData) { _exit, // TSDB_CODE_OUT_OF_MEMORY); - for (int32_t i = 0; i < taosArrayGetSize(pFS->aFileSet); i++) { - struct SFileSet *pFileSet = taosArrayGet(pFS->aFileSet, i); + for (int32_t i = 0; i < taosArrayGetSize(pFS->nState); i++) { + struct SFileSet *pFileSet = taosArrayGet(pFS->nState, i); code = tsdbFileSetToJson(aFileSetJson, pFileSet); TSDB_CHECK_CODE(code, lino, _exit); @@ -410,6 +410,8 @@ static int32_t edit_fs(struct STFileSystem *pFS, const SArray *aFileOp) { _exit); } + // TODO: write new state to file + _exit: return 0; } -- GitLab