refactor: do some internal refactor.

This commit is contained in:
Haojun Liao 2022-10-31 17:20:27 +08:00
parent 9703ab510b
commit fac516a196
1 changed files with 2 additions and 2 deletions

View File

@ -635,8 +635,8 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN
continue;
}
void* p = taosArrayPush(pScanInfo->pBlockList,
&(SBlockIndex){.ordinalIndex = j, .inFileoffset = block.aSubBlock->offset});
SBlockIndex bIndex = {.ordinalIndex = j, .inFileoffset = block.aSubBlock->offset};
void* p = taosArrayPush(pScanInfo->pBlockList, &bIndex);
if (p == NULL) {
tMapDataClear(&pScanInfo->mapData);
return TSDB_CODE_OUT_OF_MEMORY;