提交 aefc151c 编写于 作者: H Hongze Cheng

fix some code

上级 ac7f5190
...@@ -853,7 +853,7 @@ _end: ...@@ -853,7 +853,7 @@ _end:
static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFReader* pFileReader, SArray* pIndexList) { static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFReader* pFileReader, SArray* pIndexList) {
int32_t code = 0; int32_t code = 0;
SMapData blockIdxMap; SMapData blockIdxMap = {0};
tMapDataReset(&blockIdxMap); tMapDataReset(&blockIdxMap);
code = tsdbReadBlockIdx(pFileReader, &blockIdxMap, NULL); code = tsdbReadBlockIdx(pFileReader, &blockIdxMap, NULL);
...@@ -914,7 +914,7 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, uint32_ ...@@ -914,7 +914,7 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, uint32_
for(int32_t i = 0; i < numOfTables; ++i) { for(int32_t i = 0; i < numOfTables; ++i) {
SBlockIdx* pBlockIdx = taosArrayGet(pIndexList, i); SBlockIdx* pBlockIdx = taosArrayGet(pIndexList, i);
SMapData mapData; SMapData mapData = {0};
tMapDataReset(&mapData); tMapDataReset(&mapData);
tsdbReadBlock(pReader->pFileReader, pBlockIdx, &mapData, NULL); tsdbReadBlock(pReader->pFileReader, pBlockIdx, &mapData, NULL);
...@@ -3638,4 +3638,4 @@ int64_t tsdbGetNumOfRowsInMemTable(STsdbReader* pReader) { ...@@ -3638,4 +3638,4 @@ int64_t tsdbGetNumOfRowsInMemTable(STsdbReader* pReader) {
// } // }
return rows; return rows;
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册