adj error code

This commit is contained in:
54liuyao 2024-08-09 09:28:13 +08:00
parent 70b7862089
commit 3826fec13d
1 changed files with 1 additions and 2 deletions

View File

@ -4708,8 +4708,7 @@ int32_t tsdbReaderOpen2(void* pVnode, SQueryTableDataCond* pCond, void* pTableLi
pReader->pSchemaMap = tSimpleHashInit(8, taosFastHash); pReader->pSchemaMap = tSimpleHashInit(8, taosFastHash);
if (pReader->pSchemaMap == NULL) { if (pReader->pSchemaMap == NULL) {
tsdbError("failed init schema hash for reader %s", pReader->idStr); tsdbError("failed init schema hash for reader %s", pReader->idStr);
code = TSDB_CODE_OUT_OF_MEMORY; TSDB_CHECK_NULL(pReader->pSchemaMap, code, lino, _err, terrno);
goto _err;
} }
tSimpleHashSetFreeFp(pReader->pSchemaMap, freeSchemaFunc); tSimpleHashSetFreeFp(pReader->pSchemaMap, freeSchemaFunc);