提交 f35db3ba 编写于 作者: H Haojun Liao

fix(tsdb): add none check.

上级 f0cec22d
...@@ -1079,6 +1079,10 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN ...@@ -1079,6 +1079,10 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN
continue; continue;
} }
if (pScanInfo->pBlockList == NULL) {
pScanInfo->pBlockList = taosArrayInit(4, sizeof(SBrinRecord));
}
void* p1 = taosArrayPush(pScanInfo->pBlockList, pRecord); void* p1 = taosArrayPush(pScanInfo->pBlockList, pRecord);
if (p1 == NULL) { if (p1 == NULL) {
return TSDB_CODE_OUT_OF_MEMORY; return TSDB_CODE_OUT_OF_MEMORY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册