diff --git a/source/dnode/vnode/src/tsdb/dev/tsdbFS.c b/source/dnode/vnode/src/tsdb/dev/tsdbFS.c index d6823901f185ad85343e2f6aae8330813b951004..275fb1bd4749c1f8165df03a611618aa87f04d6d 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; }