Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e918982a
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e918982a
编写于
12月 03, 2022
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact: rsma adaption for new SSubmitReq
上级
385440be
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
7 deletion
+5
-7
source/common/src/tdatablock.c
source/common/src/tdatablock.c
+1
-1
source/dnode/vnode/src/inc/vnodeInt.h
source/dnode/vnode/src/inc/vnodeInt.h
+1
-1
source/dnode/vnode/src/sma/smaRollup.c
source/dnode/vnode/src/sma/smaRollup.c
+2
-4
source/dnode/vnode/src/vnd/vnodeSvr.c
source/dnode/vnode/src/vnd/vnodeSvr.c
+1
-1
未找到文件。
source/common/src/tdatablock.c
浏览文件 @
e918982a
...
@@ -2253,7 +2253,7 @@ int32_t buildSubmitReqFromDataBlock(SSubmitReq2** ppReq, const SSDataBlock* pDat
...
@@ -2253,7 +2253,7 @@ int32_t buildSubmitReqFromDataBlock(SSubmitReq2** ppReq, const SSDataBlock* pDat
SColVal
cv
=
COL_VAL_NULL
(
PRIMARYKEY_TIMESTAMP_COL_ID
+
k
,
pCol
->
type
);
SColVal
cv
=
COL_VAL_NULL
(
PRIMARYKEY_TIMESTAMP_COL_ID
+
k
,
pCol
->
type
);
taosArrayPush
(
pVals
,
&
cv
);
taosArrayPush
(
pVals
,
&
cv
);
}
else
{
}
else
{
void
*
data
=
colDataGetVarData
(
pColInfoData
,
j
);
void
*
data
=
colDataGetVarData
(
pColInfoData
,
j
);
SValue
sv
=
(
SValue
){.
nData
=
varDataLen
(
data
),
.
pData
=
varDataVal
(
data
)};
// address copy, no value
SValue
sv
=
(
SValue
){.
nData
=
varDataLen
(
data
),
.
pData
=
varDataVal
(
data
)};
// address copy, no value
SColVal
cv
=
COL_VAL_VALUE
(
PRIMARYKEY_TIMESTAMP_COL_ID
,
pCol
->
type
,
sv
);
SColVal
cv
=
COL_VAL_VALUE
(
PRIMARYKEY_TIMESTAMP_COL_ID
,
pCol
->
type
,
sv
);
taosArrayPush
(
pVals
,
&
cv
);
taosArrayPush
(
pVals
,
&
cv
);
...
...
source/dnode/vnode/src/inc/vnodeInt.h
浏览文件 @
e918982a
...
@@ -220,7 +220,7 @@ int32_t tdProcessTSmaCreate(SSma* pSma, int64_t version, const char* msg);
...
@@ -220,7 +220,7 @@ int32_t tdProcessTSmaCreate(SSma* pSma, int64_t version, const char* msg);
int32_t
tdProcessTSmaInsert
(
SSma
*
pSma
,
int64_t
indexUid
,
const
char
*
msg
);
int32_t
tdProcessTSmaInsert
(
SSma
*
pSma
,
int64_t
indexUid
,
const
char
*
msg
);
int32_t
tdProcessRSmaCreate
(
SSma
*
pSma
,
SVCreateStbReq
*
pReq
);
int32_t
tdProcessRSmaCreate
(
SSma
*
pSma
,
SVCreateStbReq
*
pReq
);
int32_t
tdProcessRSmaSubmit
(
SSma
*
pSma
,
void
*
pMsg
,
int32_t
len
,
int32_t
inputType
);
int32_t
tdProcessRSmaSubmit
(
SSma
*
pSma
,
void
*
p
Req
,
void
*
p
Msg
,
int32_t
len
,
int32_t
inputType
);
int32_t
tdProcessRSmaDrop
(
SSma
*
pSma
,
SVDropStbReq
*
pReq
);
int32_t
tdProcessRSmaDrop
(
SSma
*
pSma
,
SVDropStbReq
*
pReq
);
int32_t
tdFetchTbUidList
(
SSma
*
pSma
,
STbUidStore
**
ppStore
,
tb_uid_t
suid
,
tb_uid_t
uid
);
int32_t
tdFetchTbUidList
(
SSma
*
pSma
,
STbUidStore
**
ppStore
,
tb_uid_t
suid
,
tb_uid_t
uid
);
int32_t
tdUpdateTbUidList
(
SSma
*
pSma
,
STbUidStore
*
pUidStore
,
bool
isAdd
);
int32_t
tdUpdateTbUidList
(
SSma
*
pSma
,
STbUidStore
*
pUidStore
,
bool
isAdd
);
...
...
source/dnode/vnode/src/sma/smaRollup.c
浏览文件 @
e918982a
...
@@ -750,8 +750,6 @@ _err:
...
@@ -750,8 +750,6 @@ _err:
*/
*/
static
int32_t
tdExecuteRSmaImplAsync
(
SSma
*
pSma
,
const
void
*
pMsg
,
int32_t
len
,
int32_t
inputType
,
SRSmaInfo
*
pInfo
,
static
int32_t
tdExecuteRSmaImplAsync
(
SSma
*
pSma
,
const
void
*
pMsg
,
int32_t
len
,
int32_t
inputType
,
SRSmaInfo
*
pInfo
,
tb_uid_t
suid
)
{
tb_uid_t
suid
)
{
const
SSubmitReq2
*
pReq
=
(
const
SSubmitReq2
*
)
pMsg
;
void
*
qItem
=
taosAllocateQitem
(
len
,
DEF_QITEM
);
void
*
qItem
=
taosAllocateQitem
(
len
,
DEF_QITEM
);
if
(
!
qItem
)
{
if
(
!
qItem
)
{
return
TSDB_CODE_FAILED
;
return
TSDB_CODE_FAILED
;
...
@@ -1034,7 +1032,7 @@ static int32_t tdExecuteRSmaAsync(SSma *pSma, const void *pMsg, int32_t len, int
...
@@ -1034,7 +1032,7 @@ static int32_t tdExecuteRSmaAsync(SSma *pSma, const void *pMsg, int32_t len, int
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
int32_t
tdProcessRSmaSubmit
(
SSma
*
pSma
,
void
*
pMsg
,
int32_t
len
,
int32_t
inputType
)
{
int32_t
tdProcessRSmaSubmit
(
SSma
*
pSma
,
void
*
p
Req
,
void
*
p
Msg
,
int32_t
len
,
int32_t
inputType
)
{
SSmaEnv
*
pEnv
=
SMA_RSMA_ENV
(
pSma
);
SSmaEnv
*
pEnv
=
SMA_RSMA_ENV
(
pSma
);
if
(
!
pEnv
)
{
if
(
!
pEnv
)
{
// only applicable when rsma env exists
// only applicable when rsma env exists
...
@@ -1048,7 +1046,7 @@ int32_t tdProcessRSmaSubmit(SSma *pSma, void *pMsg, int32_t len, int32_t inputTy
...
@@ -1048,7 +1046,7 @@ int32_t tdProcessRSmaSubmit(SSma *pSma, void *pMsg, int32_t len, int32_t inputTy
}
}
if
(
inputType
==
STREAM_INPUT__DATA_SUBMIT
)
{
if
(
inputType
==
STREAM_INPUT__DATA_SUBMIT
)
{
if
(
tdFetchSubmitReqSuids
(
p
Msg
,
&
uidStore
)
<
0
)
{
if
(
tdFetchSubmitReqSuids
(
p
Req
,
&
uidStore
)
<
0
)
{
smaError
(
"vgId:%d, failed to process rsma submit fetch suid since: %s"
,
SMA_VID
(
pSma
),
terrstr
());
smaError
(
"vgId:%d, failed to process rsma submit fetch suid since: %s"
,
SMA_VID
(
pSma
),
terrstr
());
goto
_err
;
goto
_err
;
}
}
...
...
source/dnode/vnode/src/vnd/vnodeSvr.c
浏览文件 @
e918982a
...
@@ -987,7 +987,7 @@ _exit:
...
@@ -987,7 +987,7 @@ _exit:
atomic_add_fetch_64
(
&
pVnode
->
statis
.
nBatchInsert
,
1
);
atomic_add_fetch_64
(
&
pVnode
->
statis
.
nBatchInsert
,
1
);
if
(
code
==
0
)
{
if
(
code
==
0
)
{
atomic_add_fetch_64
(
&
pVnode
->
statis
.
nBatchInsertSuccess
,
1
);
atomic_add_fetch_64
(
&
pVnode
->
statis
.
nBatchInsertSuccess
,
1
);
tdProcessRSmaSubmit
(
pVnode
->
pSma
,
pSubmitReq
,
len
,
STREAM_INPUT__DATA_SUBMIT
);
tdProcessRSmaSubmit
(
pVnode
->
pSma
,
pSubmitReq
,
pReq
,
len
,
STREAM_INPUT__DATA_SUBMIT
);
}
}
// clear
// clear
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录