From 6e82734109cf850346da2ae4b803263daf3799d9 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 28 Jan 2022 17:52:49 +0800 Subject: [PATCH] update --- src/tsdb/src/tsdbFS.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 8929ef6f0f..b3d52e8fad 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -92,9 +92,7 @@ static int tsdbEncodeDFileSetArray(void **buf, SArray *pArray) { static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray, SFSHeader *pSFSHeader) { uint64_t nset = 0; - SDFileSet dset = {0}; - dset.ver = TSDB_FSET_VER_0; // default value - + taosArrayClear(pArray); buf = taosDecodeFixedU64(buf, &nset); @@ -113,6 +111,7 @@ static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray, } for (size_t i = 0; i < nset; i++) { + SDFileSet dset = {0}; // ver is TSDB_FSET_VER_0(0) at default buf = tsdbDecodeDFileSet(buf, &dset, pSFSHeader->version); taosArrayPush(pArray, (void *)(&dset)); } -- GitLab