From 7c339a8460e0f49b2e7b05d00a0f10187b80d6d1 Mon Sep 17 00:00:00 2001 From: root <314218900@qq.com> Date: Sat, 11 Jun 2022 07:53:22 +0800 Subject: [PATCH] fix: taosBenchmark subscribe crash #12434 --- src/client/src/tscUtil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index ec4f2c1daf..7a7f83901b 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4154,7 +4154,8 @@ static void tscSubqueryCompleteCallback(void* param, TAOS_RES* tres, int code) { } int32_t doInitSubState(SSqlObj* pSql, int32_t numOfSubqueries) { - assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL); + //bug fix. Above doInitSubState level, the loop invocation with the same SSqlObj will be fail. + //assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL); pSql->subState.numOfSub = numOfSubqueries; pSql->pSubs = calloc(pSql->subState.numOfSub, POINTER_BYTES); -- GitLab