Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2b9aff69
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看板
提交
2b9aff69
编写于
6月 28, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: remove rpc response msg in delete
上级
d3e741a8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
21 deletion
+11
-21
include/libs/qworker/qworker.h
include/libs/qworker/qworker.h
+2
-1
source/dnode/vnode/src/vnd/vnodeSvr.c
source/dnode/vnode/src/vnd/vnodeSvr.c
+1
-1
source/libs/qworker/inc/qwMsg.h
source/libs/qworker/inc/qwMsg.h
+1
-1
source/libs/qworker/src/qwMsg.c
source/libs/qworker/src/qwMsg.c
+3
-3
source/libs/qworker/src/qworker.c
source/libs/qworker/src/qworker.c
+4
-15
未找到文件。
include/libs/qworker/qworker.h
浏览文件 @
2b9aff69
...
@@ -36,6 +36,7 @@ typedef struct SDeleteRes {
...
@@ -36,6 +36,7 @@ typedef struct SDeleteRes {
SArray
*
uidList
;
SArray
*
uidList
;
int64_t
skey
;
int64_t
skey
;
int64_t
ekey
;
int64_t
ekey
;
int64_t
affectedRows
;
}
SDeleteRes
;
}
SDeleteRes
;
typedef
struct
SQWorkerCfg
{
typedef
struct
SQWorkerCfg
{
...
@@ -82,7 +83,7 @@ int32_t qWorkerProcessDropMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, int6
...
@@ -82,7 +83,7 @@ int32_t qWorkerProcessDropMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, int6
int32_t
qWorkerProcessHbMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
int64_t
ts
);
int32_t
qWorkerProcessHbMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
int64_t
ts
);
int32_t
qWorkerProcessDeleteMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
S
RpcMsg
*
pRsp
,
S
DeleteRes
*
pRes
);
int32_t
qWorkerProcessDeleteMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
SDeleteRes
*
pRes
);
void
qWorkerDestroy
(
void
**
qWorkerMgmt
);
void
qWorkerDestroy
(
void
**
qWorkerMgmt
);
...
...
source/dnode/vnode/src/vnd/vnodeSvr.c
浏览文件 @
2b9aff69
...
@@ -288,7 +288,7 @@ int32_t vnodeProcessWriteMsg(SVnode *pVnode, int64_t version, SRpcMsg *pMsg, SRp
...
@@ -288,7 +288,7 @@ int32_t vnodeProcessWriteMsg(SVnode *pVnode, int64_t version, SRpcMsg *pMsg, SRp
switch
(
pMsg
->
msgType
)
{
switch
(
pMsg
->
msgType
)
{
case
TDMT_VND_DELETE
:
case
TDMT_VND_DELETE
:
return
qWorkerProcessDeleteMsg
(
&
handle
,
pVnode
->
pQuery
,
pMsg
,
pRsp
,
&
res
);
return
qWorkerProcessDeleteMsg
(
&
handle
,
pVnode
->
pQuery
,
pMsg
,
&
res
);
default:
default:
vError
(
"unknown msg type:%d in write queue"
,
pMsg
->
msgType
);
vError
(
"unknown msg type:%d in write queue"
,
pMsg
->
msgType
);
return
TSDB_CODE_VND_APP_ERROR
;
return
TSDB_CODE_VND_APP_ERROR
;
...
...
source/libs/qworker/inc/qwMsg.h
浏览文件 @
2b9aff69
...
@@ -31,7 +31,7 @@ int32_t qwProcessReady(QW_FPARAMS_DEF, SQWMsg *qwMsg);
...
@@ -31,7 +31,7 @@ int32_t qwProcessReady(QW_FPARAMS_DEF, SQWMsg *qwMsg);
int32_t
qwProcessFetch
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
);
int32_t
qwProcessFetch
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
);
int32_t
qwProcessDrop
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
);
int32_t
qwProcessDrop
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
);
int32_t
qwProcessHb
(
SQWorker
*
mgmt
,
SQWMsg
*
qwMsg
,
SSchedulerHbReq
*
req
);
int32_t
qwProcessHb
(
SQWorker
*
mgmt
,
SQWMsg
*
qwMsg
,
SSchedulerHbReq
*
req
);
int32_t
qwProcessDelete
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
,
S
RpcMsg
*
pRsp
,
S
DeleteRes
*
pRes
);
int32_t
qwProcessDelete
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
,
SDeleteRes
*
pRes
);
int32_t
qwBuildAndSendDropRsp
(
SRpcHandleInfo
*
pConn
,
int32_t
code
);
int32_t
qwBuildAndSendDropRsp
(
SRpcHandleInfo
*
pConn
,
int32_t
code
);
int32_t
qwBuildAndSendCancelRsp
(
SRpcHandleInfo
*
pConn
,
int32_t
code
);
int32_t
qwBuildAndSendCancelRsp
(
SRpcHandleInfo
*
pConn
,
int32_t
code
);
...
...
source/libs/qworker/src/qwMsg.c
浏览文件 @
2b9aff69
...
@@ -536,8 +536,8 @@ int32_t qWorkerProcessHbMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, int64_
...
@@ -536,8 +536,8 @@ int32_t qWorkerProcessHbMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, int64_
}
}
int32_t
qWorkerProcessDeleteMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
S
RpcMsg
*
pRsp
,
S
DeleteRes
*
pRes
)
{
int32_t
qWorkerProcessDeleteMsg
(
void
*
node
,
void
*
qWorkerMgmt
,
SRpcMsg
*
pMsg
,
SDeleteRes
*
pRes
)
{
if
(
NULL
==
node
||
NULL
==
qWorkerMgmt
||
NULL
==
pMsg
||
NULL
==
pRsp
)
{
if
(
NULL
==
node
||
NULL
==
qWorkerMgmt
||
NULL
==
pMsg
)
{
QW_ERR_RET
(
TSDB_CODE_QRY_INVALID_INPUT
);
QW_ERR_RET
(
TSDB_CODE_QRY_INVALID_INPUT
);
}
}
...
@@ -558,7 +558,7 @@ int32_t qWorkerProcessDeleteMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, SR
...
@@ -558,7 +558,7 @@ int32_t qWorkerProcessDeleteMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, SR
QW_SCH_TASK_DLOG
(
"processDelete start, node:%p, handle:%p, sql:%s"
,
node
,
pMsg
->
info
.
handle
,
req
.
sql
);
QW_SCH_TASK_DLOG
(
"processDelete start, node:%p, handle:%p, sql:%s"
,
node
,
pMsg
->
info
.
handle
,
req
.
sql
);
taosMemoryFreeClear
(
req
.
sql
);
taosMemoryFreeClear
(
req
.
sql
);
QW_ERR_JRET
(
qwProcessDelete
(
QW_FPARAMS
(),
&
qwMsg
,
pR
sp
,
pR
es
));
QW_ERR_JRET
(
qwProcessDelete
(
QW_FPARAMS
(),
&
qwMsg
,
pRes
));
QW_SCH_TASK_DLOG
(
"processDelete end, node:%p"
,
node
);
QW_SCH_TASK_DLOG
(
"processDelete end, node:%p"
,
node
);
...
...
source/libs/qworker/src/qworker.c
浏览文件 @
2b9aff69
...
@@ -242,9 +242,8 @@ int32_t qwGetQueryResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen,
...
@@ -242,9 +242,8 @@ int32_t qwGetQueryResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen,
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
int32_t
qwGetDeleteResFromSink
(
QW_FPARAMS_DEF
,
SQWTaskCtx
*
ctx
,
int32_t
*
dataLen
,
void
**
rspMsg
,
SDeleteRes
*
pRes
)
{
int32_t
qwGetDeleteResFromSink
(
QW_FPARAMS_DEF
,
SQWTaskCtx
*
ctx
,
SDeleteRes
*
pRes
)
{
int32_t
len
=
0
;
int32_t
len
=
0
;
SVDeleteRsp
rsp
=
{
0
};
bool
queryEnd
=
false
;
bool
queryEnd
=
false
;
int32_t
code
=
0
;
int32_t
code
=
0
;
SOutputData
output
=
{
0
};
SOutputData
output
=
{
0
};
...
@@ -270,21 +269,11 @@ int32_t qwGetDeleteResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen
...
@@ -270,21 +269,11 @@ int32_t qwGetDeleteResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen
SDeleterRes
*
pDelRes
=
(
SDeleterRes
*
)
output
.
pData
;
SDeleterRes
*
pDelRes
=
(
SDeleterRes
*
)
output
.
pData
;
rsp
.
affectedRows
=
pDelRes
->
affectedRows
;
pRes
->
suid
=
pDelRes
->
suid
;
pRes
->
suid
=
pDelRes
->
suid
;
pRes
->
uidList
=
pDelRes
->
uidList
;
pRes
->
uidList
=
pDelRes
->
uidList
;
pRes
->
skey
=
pDelRes
->
skey
;
pRes
->
skey
=
pDelRes
->
skey
;
pRes
->
ekey
=
pDelRes
->
ekey
;
pRes
->
ekey
=
pDelRes
->
ekey
;
pRes
->
affectedRows
=
pDelRes
->
affectedRows
;
SEncoder
coder
=
{
0
};
tEncodeSize
(
tEncodeSVDeleteRsp
,
&
rsp
,
len
,
code
);
void
*
msg
=
rpcMallocCont
(
len
);
tEncoderInit
(
&
coder
,
msg
,
len
);
tEncodeSVDeleteRsp
(
&
coder
,
&
rsp
);
tEncoderClear
(
&
coder
);
*
rspMsg
=
msg
;
*
dataLen
=
len
;
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
@@ -931,7 +920,7 @@ _return:
...
@@ -931,7 +920,7 @@ _return:
qwRelease
(
refId
);
qwRelease
(
refId
);
}
}
int32_t
qwProcessDelete
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
,
S
RpcMsg
*
pRsp
,
S
DeleteRes
*
pRes
)
{
int32_t
qwProcessDelete
(
QW_FPARAMS_DEF
,
SQWMsg
*
qwMsg
,
SDeleteRes
*
pRes
)
{
int32_t
code
=
0
;
int32_t
code
=
0
;
SSubplan
*
plan
=
NULL
;
SSubplan
*
plan
=
NULL
;
qTaskInfo_t
pTaskInfo
=
NULL
;
qTaskInfo_t
pTaskInfo
=
NULL
;
...
@@ -963,7 +952,7 @@ int32_t qwProcessDelete(QW_FPARAMS_DEF, SQWMsg *qwMsg, SRpcMsg *pRsp, SDeleteRes
...
@@ -963,7 +952,7 @@ int32_t qwProcessDelete(QW_FPARAMS_DEF, SQWMsg *qwMsg, SRpcMsg *pRsp, SDeleteRes
QW_ERR_JRET
(
qwExecTask
(
QW_FPARAMS
(),
&
ctx
,
NULL
));
QW_ERR_JRET
(
qwExecTask
(
QW_FPARAMS
(),
&
ctx
,
NULL
));
QW_ERR_JRET
(
qwGetDeleteResFromSink
(
QW_FPARAMS
(),
&
ctx
,
&
pRsp
->
contLen
,
&
pRsp
->
pCont
,
pRes
));
QW_ERR_JRET
(
qwGetDeleteResFromSink
(
QW_FPARAMS
(),
&
ctx
,
pRes
));
_return:
_return:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录