From c85a88824157c9accc1b20611dba88209bc339a8 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 c385e37fb9..7af6a080ed 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4191,7 +4191,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