From ef41c0dcf943383f6268b6bcdbc344acb3e49c34 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 6 Aug 2024 23:57:29 +0800 Subject: [PATCH] fix(query): fix syntax error. --- source/libs/executor/inc/executil.h | 8 ++++---- source/libs/executor/src/executor.c | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/source/libs/executor/inc/executil.h b/source/libs/executor/inc/executil.h index 66f8e46ead..46fc618f76 100644 --- a/source/libs/executor/inc/executil.h +++ b/source/libs/executor/inc/executil.h @@ -24,10 +24,10 @@ #include "tpagedbuf.h" #include "tsimplehash.h" -#define T_LONG_JMP(_obj, _c) \ - do { \ - ASSERT((_obj)->__jmpbuf[0] != 0); \ - longjmp((_obj), (_c)); \ +#define T_LONG_JMP(_obj, _c) \ + do { \ + ASSERT(1); \ + longjmp((_obj), (_c)); \ } while (0) #define SET_RES_WINDOW_KEY(_k, _ori, _len, _uid) \ diff --git a/source/libs/executor/src/executor.c b/source/libs/executor/src/executor.c index 34aadd6b35..04998705a5 100644 --- a/source/libs/executor/src/executor.c +++ b/source/libs/executor/src/executor.c @@ -838,8 +838,6 @@ int32_t qExecTask(qTaskInfo_t tinfo, SSDataBlock** pRes, uint64_t* useconds) { GET_TASKID(pTaskInfo), current, total, 0, el / 1000.0); atomic_store_64(&pTaskInfo->owner, 0); - memset(pTaskInfo->env->__jmpbuf, 0, tListLen(pTaskInfo->env->__jmpbuf)); - return pTaskInfo->code; }