Skip to content

Commit 135131f

Browse files
Merge pull request #28921 from taosdata/fix/TD-33008-main
fix(query)[TD-33008]. fix error handling in tsdbCacheRead
2 parents 091a5d9 + 7bbda0c commit 135131f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/dnode/vnode/src/tsdb/tsdbCacheRead.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ int32_t tsdbCacherowsReaderOpen(void* pVnode, int32_t type, void* pTableIdList,
346346
p->rowKey.pks[0].pData = taosMemoryCalloc(1, pPkCol->bytes);
347347
if (p->rowKey.pks[0].pData == NULL) {
348348
taosMemoryFreeClear(p);
349-
TSDB_CHECK_NULL(p->rowKey.pks[0].pData, code, lino, _end, terrno);
349+
code = terrno;
350+
TSDB_CHECK_CODE(code, lino, _end);
350351
}
351352
}
352353

0 commit comments

Comments
 (0)