Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8cadb174
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
未验证
提交
8cadb174
编写于
9月 27, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
9月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #17083 from taosdata/3.0
release: build 3.0.1.3
上级
a08501b3
c16f4ae3
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
28 addition
and
19 deletion
+28
-19
source/dnode/mnode/impl/src/mndCluster.c
source/dnode/mnode/impl/src/mndCluster.c
+1
-1
source/dnode/mnode/impl/src/mndConsumer.c
source/dnode/mnode/impl/src/mndConsumer.c
+2
-0
source/dnode/mnode/impl/src/mndMain.c
source/dnode/mnode/impl/src/mndMain.c
+17
-15
source/dnode/mnode/impl/src/mndStb.c
source/dnode/mnode/impl/src/mndStb.c
+2
-0
source/dnode/mnode/impl/src/mndTelem.c
source/dnode/mnode/impl/src/mndTelem.c
+1
-1
source/dnode/mnode/impl/src/mndTrans.c
source/dnode/mnode/impl/src/mndTrans.c
+1
-0
source/dnode/vnode/src/vnd/vnodeSync.c
source/dnode/vnode/src/vnd/vnodeSync.c
+2
-0
source/libs/sync/src/syncRaftStore.c
source/libs/sync/src/syncRaftStore.c
+1
-1
utils/test/c/createTable.c
utils/test/c/createTable.c
+1
-1
未找到文件。
source/dnode/mnode/impl/src/mndCluster.c
浏览文件 @
8cadb174
...
...
@@ -315,7 +315,7 @@ static int32_t mndProcessUptimeTimer(SRpcMsg *pReq) {
return
0
;
}
m
Trace
(
"update cluster uptime to %"
PRId64
,
clusterObj
.
upTime
);
m
Info
(
"update cluster uptime to %"
PRId64
,
clusterObj
.
upTime
);
STrans
*
pTrans
=
mndTransCreate
(
pMnode
,
TRN_POLICY_ROLLBACK
,
TRN_CONFLICT_NOTHING
,
pReq
,
"update-uptime"
);
if
(
pTrans
==
NULL
)
return
-
1
;
...
...
source/dnode/mnode/impl/src/mndConsumer.c
浏览文件 @
8cadb174
...
...
@@ -178,6 +178,8 @@ static int32_t mndProcessMqTimerMsg(SRpcMsg *pMsg) {
SMqConsumerObj
*
pConsumer
;
void
*
pIter
=
NULL
;
mTrace
(
"start to process mq timer"
);
// rebalance cannot be parallel
if
(
!
mndRebTryStart
())
{
mInfo
(
"mq rebalance already in progress, do nothing"
);
...
...
source/dnode/mnode/impl/src/mndMain.c
浏览文件 @
8cadb174
...
...
@@ -119,28 +119,30 @@ static void *mndThreadFp(void *param) {
lastTime
++
;
taosMsleep
(
100
);
if
(
mndGetStop
(
pMnode
))
break
;
if
(
lastTime
%
10
!=
0
)
continue
;
if
(
lastTime
%
(
tsTtlPushInterval
*
10
)
==
1
)
{
int64_t
sec
=
lastTime
/
10
;
if
(
sec
%
tsTtlPushInterval
==
0
)
{
mndPullupTtl
(
pMnode
);
}
if
(
lastTime
%
(
tsTransPullupInterval
*
10
)
==
0
)
{
if
(
sec
%
tsTransPullupInterval
==
0
)
{
mndPullupTrans
(
pMnode
);
}
if
(
lastTime
%
(
tsMqRebalanceInterval
*
10
)
==
0
)
{
if
(
sec
%
tsMqRebalanceInterval
==
0
)
{
mndCalMqRebalance
(
pMnode
);
}
if
(
lastTime
%
(
tsTelemInterval
*
10
)
==
((
tsTelemInterval
-
1
)
*
10
))
{
if
(
sec
%
tsTelemInterval
==
(
TMIN
(
60
,
(
tsTelemInterval
-
1
))
))
{
mndPullupTelem
(
pMnode
);
}
if
(
lastTime
%
(
tsGrantHBInterval
*
10
)
==
0
)
{
if
(
sec
%
tsGrantHBInterval
==
0
)
{
mndPullupGrant
(
pMnode
);
}
if
(
(
lastTime
%
(
tsUptimeInterval
*
10
))
==
((
tsUptimeInterval
-
1
)
*
10
)
)
{
if
(
sec
%
tsUptimeInterval
==
0
)
{
mndIncreaseUpTime
(
pMnode
);
}
}
...
...
@@ -399,15 +401,15 @@ void mndPreClose(SMnode *pMnode) {
atomic_store_8
(
&
(
pMnode
->
syncMgmt
.
leaderTransferFinish
),
0
);
syncLeaderTransfer
(
pMnode
->
syncMgmt
.
sync
);
/*
mInfo("vgId:1, mnode start leader transfer");
// wait for leader transfer finish
while (!atomic_load_8(&(pMnode->syncMgmt.leaderTransferFinish))) {
taosMsleep(10);
mInfo("vgId:1, mnode waiting for leader transfer");
}
mInfo("vgId:1, mnode finish leader transfer");
*/
#if 0
mInfo("vgId:1, mnode start leader transfer");
// wait for leader transfer finish
while (!atomic_load_8(&(pMnode->syncMgmt.leaderTransferFinish))) {
taosMsleep(10);
mInfo("vgId:1, mnode waiting for leader transfer");
}
mInfo("vgId:1, mnode finish leader transfer");
#endif
}
}
...
...
source/dnode/mnode/impl/src/mndStb.c
浏览文件 @
8cadb174
...
...
@@ -834,6 +834,8 @@ static int32_t mndProcessTtlTimer(SRpcMsg *pReq) {
int32_t
reqLen
=
tSerializeSVDropTtlTableReq
(
NULL
,
0
,
&
ttlReq
);
int32_t
contLen
=
reqLen
+
sizeof
(
SMsgHead
);
mInfo
(
"start to process ttl timer"
);
while
(
1
)
{
pIter
=
sdbFetch
(
pSdb
,
SDB_VGROUP
,
pIter
,
(
void
**
)
&
pVgroup
);
if
(
pIter
==
NULL
)
break
;
...
...
source/dnode/mnode/impl/src/mndTelem.c
浏览文件 @
8cadb174
...
...
@@ -133,7 +133,7 @@ static int32_t mndProcessTelemTimer(SRpcMsg* pReq) {
if
(
taosSendHttpReport
(
tsTelemServer
,
tsTelemPort
,
pCont
,
strlen
(
pCont
),
HTTP_FLAT
)
!=
0
)
{
mError
(
"failed to send telemetry report"
);
}
else
{
m
Trace
(
"succeed to send telemetry report"
);
m
Info
(
"succeed to send telemetry report"
);
}
taosMemoryFree
(
pCont
);
}
...
...
source/dnode/mnode/impl/src/mndTrans.c
浏览文件 @
8cadb174
...
...
@@ -1478,6 +1478,7 @@ void mndTransExecute(SMnode *pMnode, STrans *pTrans) {
}
static
int32_t
mndProcessTransTimer
(
SRpcMsg
*
pReq
)
{
mTrace
(
"start to process trans timer"
);
mndTransPullup
(
pReq
->
info
.
node
);
return
0
;
}
...
...
source/dnode/vnode/src/vnd/vnodeSync.c
浏览文件 @
8cadb174
...
...
@@ -688,6 +688,8 @@ static void vnodeRestoreFinish(struct SSyncFSM *pFsm) {
}
}
while
(
true
);
walApplyVer
(
pVnode
->
pWal
,
pVnode
->
state
.
applied
);
pVnode
->
restored
=
true
;
vDebug
(
"vgId:%d, sync restore finished"
,
pVnode
->
config
.
vgId
);
}
...
...
source/libs/sync/src/syncRaftStore.c
浏览文件 @
8cadb174
...
...
@@ -46,7 +46,7 @@ SRaftStore *raftStoreOpen(const char *path) {
ASSERT
(
pRaftStore
->
pFile
!=
NULL
);
int
len
=
taosReadFile
(
pRaftStore
->
pFile
,
storeBuf
,
RAFT_STORE_BLOCK_SIZE
);
ASSERT
(
len
==
RAFT_STORE_BLOCK_SIZE
);
ASSERT
(
len
>
0
);
ret
=
raftStoreDeserialize
(
pRaftStore
,
storeBuf
,
len
);
ASSERT
(
ret
==
0
);
...
...
utils/test/c/createTable.c
浏览文件 @
8cadb174
...
...
@@ -201,7 +201,7 @@ void *threadFunc(void *param) {
int64_t
t
=
pInfo
->
tableBeginIndex
;
for
(;
t
<=
pInfo
->
tableEndIndex
;)
{
// int64_t batch = (pInfo->tableEndIndex - t);
// batch = MIN(batch, batchNum);
// batch =
T
MIN(batch, batchNum);
int32_t
len
=
sprintf
(
qstr
,
"create table"
);
for
(
int32_t
i
=
0
;
i
<
batchNumOfTbl
;)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录