From aefc151c03406d491cbf5d723856ef9c661dbd0f Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 29 Jun 2022 10:37:35 +0000 Subject: [PATCH] fix some code --- source/dnode/vnode/src/tsdb/tsdbRead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c index bd4f4d1ca8..558c3f6e59 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead.c @@ -853,7 +853,7 @@ _end: static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFReader* pFileReader, SArray* pIndexList) { int32_t code = 0; - SMapData blockIdxMap; + SMapData blockIdxMap = {0}; tMapDataReset(&blockIdxMap); code = tsdbReadBlockIdx(pFileReader, &blockIdxMap, NULL); @@ -914,7 +914,7 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, uint32_ for(int32_t i = 0; i < numOfTables; ++i) { SBlockIdx* pBlockIdx = taosArrayGet(pIndexList, i); - SMapData mapData; + SMapData mapData = {0}; tMapDataReset(&mapData); tsdbReadBlock(pReader->pFileReader, pBlockIdx, &mapData, NULL); @@ -3638,4 +3638,4 @@ int64_t tsdbGetNumOfRowsInMemTable(STsdbReader* pReader) { // } return rows; -} \ No newline at end of file +} -- GitLab