Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c33f31b6
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c33f31b6
编写于
4月 09, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feature/qnode
上级
32955078
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
15 addition
and
12 deletion
+15
-12
source/libs/command/src/explain.c
source/libs/command/src/explain.c
+6
-8
source/libs/qworker/inc/qworkerInt.h
source/libs/qworker/inc/qworkerInt.h
+1
-0
source/libs/qworker/src/qworker.c
source/libs/qworker/src/qworker.c
+7
-3
source/libs/qworker/src/qworkerMsg.c
source/libs/qworker/src/qworkerMsg.c
+1
-1
未找到文件。
source/libs/command/src/explain.c
浏览文件 @
c33f31b6
...
...
@@ -52,15 +52,13 @@ void qExplainFreeCtx(SExplainCtx *pCtx) {
void
*
pIter
=
taosHashIterate
(
pCtx
->
groupHash
,
NULL
);
while
(
pIter
)
{
SExplainGroup
*
group
=
(
SExplainGroup
*
)
pIter
;
if
(
NULL
==
group
->
nodeExecInfo
)
{
continue
;
}
if
(
group
->
nodeExecInfo
)
{
int32_t
num
=
taosArrayGetSize
(
group
->
nodeExecInfo
);
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
SExplainRsp
*
rsp
=
taosArrayGet
(
group
->
nodeExecInfo
,
i
);
taosMemoryFreeClear
(
rsp
->
subplanInfo
);
}
}
pIter
=
taosHashIterate
(
pCtx
->
groupHash
,
pIter
);
}
...
...
source/libs/qworker/inc/qworkerInt.h
浏览文件 @
c33f31b6
...
...
@@ -79,6 +79,7 @@ typedef struct SQWConnInfo {
typedef
struct
SQWMsg
{
void
*
node
;
int32_t
code
;
char
*
msg
;
int32_t
msgLen
;
SQWConnInfo
connInfo
;
...
...
source/libs/qworker/src/qworker.c
浏览文件 @
c33f31b6
...
...
@@ -536,6 +536,8 @@ int32_t qwDropTask(QW_FPARAMS_DEF) {
QW_ERR_RET
(
qwDropTaskStatus
(
QW_FPARAMS
()));
QW_ERR_RET
(
qwDropTaskCtx
(
QW_FPARAMS
()));
QW_TASK_DLOG_E
(
"task is dropped"
);
return
TSDB_CODE_SUCCESS
;
}
...
...
@@ -1239,8 +1241,10 @@ int32_t qwProcessDrop(QW_FPARAMS_DEF, SQWMsg *qwMsg) {
QW_ERR_JRET
(
qwKillTaskHandle
(
QW_FPARAMS
(),
ctx
));
qwUpdateTaskStatus
(
QW_FPARAMS
(),
JOB_TASK_STATUS_DROPPING
);
}
else
if
(
ctx
->
phase
>
0
)
{
if
(
0
==
qwMsg
->
code
)
{
qwBuildAndSendDropRsp
(
&
qwMsg
->
connInfo
,
code
);
QW_TASK_DLOG
(
"drop rsp send, handle:%p, code:%x - %s"
,
qwMsg
->
connInfo
.
handle
,
code
,
tstrerror
(
code
));
}
QW_ERR_JRET
(
qwDropTask
(
QW_FPARAMS
()));
rsped
=
true
;
...
...
@@ -1273,7 +1277,7 @@ _return:
qwReleaseTaskCtx
(
mgmt
,
ctx
);
}
if
(
TSDB_CODE_SUCCESS
!=
code
)
{
if
(
(
TSDB_CODE_SUCCESS
!=
code
)
&&
(
0
==
qwMsg
->
code
)
)
{
qwBuildAndSendDropRsp
(
&
qwMsg
->
connInfo
,
code
);
QW_TASK_DLOG
(
"drop rsp send, handle:%p, code:%x - %s"
,
qwMsg
->
connInfo
.
handle
,
code
,
tstrerror
(
code
));
}
...
...
source/libs/qworker/src/qworkerMsg.c
浏览文件 @
c33f31b6
...
...
@@ -549,7 +549,7 @@ int32_t qWorkerProcessDropMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg) {
uint64_t
tId
=
msg
->
taskId
;
int64_t
rId
=
msg
->
refId
;
SQWMsg
qwMsg
=
{.
node
=
node
,
.
msg
=
NULL
,
.
msgLen
=
0
};
SQWMsg
qwMsg
=
{.
node
=
node
,
.
msg
=
NULL
,
.
msgLen
=
0
,
.
code
=
pMsg
->
code
};
qwMsg
.
connInfo
.
handle
=
pMsg
->
handle
;
qwMsg
.
connInfo
.
ahandle
=
pMsg
->
ahandle
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录