fix some code

This commit is contained in:
Hongze Cheng 2022-06-29 10:37:35 +00:00
parent ac7f5190aa
commit aefc151c03
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}