diff --git a/source/dnode/vnode/src/tsdb/tsdbRead2.c b/source/dnode/vnode/src/tsdb/tsdbRead2.c index 3503fbdba19ae600391431d73b3e58841496fc8b..bf23c18cf66ca69d2107a791cf6e74e67eb53714 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead2.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead2.c @@ -1079,6 +1079,10 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN continue; } + if (pScanInfo->pBlockList == NULL) { + pScanInfo->pBlockList = taosArrayInit(4, sizeof(SBrinRecord)); + } + void* p1 = taosArrayPush(pScanInfo->pBlockList, pRecord); if (p1 == NULL) { return TSDB_CODE_OUT_OF_MEMORY;