提交 45a625f2 编写于 作者: K kailixu

fix: add mem check

上级 f3b4dbd2
...@@ -521,6 +521,14 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) { ...@@ -521,6 +521,14 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) {
taosHashSetFreeFp(pInfo->pSchema, tDeleteSSchemaWrapperForHash); taosHashSetFreeFp(pInfo->pSchema, tDeleteSSchemaWrapperForHash);
} }
if (!pInfo->pCur || !pInfo->pSchema) {
terrno = TSDB_CODE_OUT_OF_MEMORY;
qError("sysTableScanUserCols failed since %s", terrstr(terrno));
blockDataDestroy(dataBlock);
pInfo->loadInfo.totalRows = 0;
return NULL;
}
int32_t resume = pInfo->resume; int32_t resume = pInfo->resume;
pInfo->resume = false; pInfo->resume = false;
while (resume || ((ret = metaTbCursorNext(pInfo->pCur, TSDB_TABLE_MAX)) == 0)) { while (resume || ((ret = metaTbCursorNext(pInfo->pCur, TSDB_TABLE_MAX)) == 0)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册