fix some code
This commit is contained in:
parent
ac7f5190aa
commit
aefc151c03
|
@ -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_
|
||||||
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) {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue