Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
~笨蛋陪你哭
TDengine
提交
0eaf70c9
T
TDengine
项目概览
~笨蛋陪你哭
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0eaf70c9
编写于
12月 12, 2020
作者:
Z
zyyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-2371 change log
上级
236295b8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
12 deletion
+17
-12
src/cq/src/cqMain.c
src/cq/src/cqMain.c
+4
-4
src/dnode/src/dnodeVnodes.c
src/dnode/src/dnodeVnodes.c
+1
-1
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+1
-1
src/mnode/src/mnodeMnode.c
src/mnode/src/mnodeMnode.c
+4
-4
src/mnode/src/mnodeSdb.c
src/mnode/src/mnodeSdb.c
+7
-2
未找到文件。
src/cq/src/cqMain.c
浏览文件 @
0eaf70c9
...
...
@@ -97,7 +97,7 @@ void *cqOpen(void *ahandle, const SCqCfg *pCfg) {
pthread_mutex_init
(
&
pContext
->
mutex
,
NULL
);
c
Info
(
"vgId:%d, CQ is opened"
,
pContext
->
vgId
);
c
Debug
(
"vgId:%d, CQ is opened"
,
pContext
->
vgId
);
return
pContext
;
}
...
...
@@ -131,7 +131,7 @@ void cqClose(void *handle) {
taosTmrCleanUp
(
pContext
->
tmrCtrl
);
pContext
->
tmrCtrl
=
NULL
;
c
Info
(
"vgId:%d, CQ is closed"
,
pContext
->
vgId
);
c
Debug
(
"vgId:%d, CQ is closed"
,
pContext
->
vgId
);
free
(
pContext
);
}
...
...
@@ -142,7 +142,7 @@ void cqStart(void *handle) {
SCqContext
*
pContext
=
handle
;
if
(
pContext
->
dbConn
||
pContext
->
master
)
return
;
c
Info
(
"vgId:%d, start all CQs"
,
pContext
->
vgId
);
c
Debug
(
"vgId:%d, start all CQs"
,
pContext
->
vgId
);
pthread_mutex_lock
(
&
pContext
->
mutex
);
pContext
->
master
=
1
;
...
...
@@ -298,7 +298,7 @@ static void cqCreateStream(SCqContext *pContext, SCqObj *pObj) {
if
(
pObj
->
pStream
)
{
tscSetStreamDestTable
(
pObj
->
pStream
,
pObj
->
dstTable
);
pContext
->
num
++
;
c
Info
(
"vgId:%d, id:%d CQ:%s is openned"
,
pContext
->
vgId
,
pObj
->
tid
,
pObj
->
sqlStr
);
c
Debug
(
"vgId:%d, id:%d CQ:%s is openned"
,
pContext
->
vgId
,
pObj
->
tid
,
pObj
->
sqlStr
);
}
else
{
cError
(
"vgId:%d, id:%d CQ:%s, failed to open"
,
pContext
->
vgId
,
pObj
->
tid
,
pObj
->
sqlStr
);
}
...
...
src/dnode/src/dnodeVnodes.c
浏览文件 @
0eaf70c9
...
...
@@ -127,7 +127,7 @@ int32_t dnodeInitVnodes() {
pThread
->
vnodeList
[
pThread
->
vnodeNum
++
]
=
vnodeList
[
v
];
}
d
Debug
(
"start %d threads to open %d vnodes"
,
threadNum
,
numOfVnodes
);
d
Info
(
"start %d threads to open %d vnodes"
,
threadNum
,
numOfVnodes
);
for
(
int32_t
t
=
0
;
t
<
threadNum
;
++
t
)
{
SOpenVnodeThread
*
pThread
=
&
threads
[
t
];
...
...
src/mnode/src/mnodeDnode.c
浏览文件 @
0eaf70c9
...
...
@@ -104,7 +104,7 @@ static int32_t mnodeDnodeActionInsert(SSdbRow *pRow) {
dnodeUpdateEp
(
pDnode
->
dnodeId
,
pDnode
->
dnodeEp
,
pDnode
->
dnodeFqdn
,
&
pDnode
->
dnodePort
);
mnodeUpdateDnodeEps
();
mInfo
(
"dnode:%d, fqdn:%s ep:%s port:%d
, do insert action
"
,
pDnode
->
dnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
pDnode
->
dnodePort
);
mInfo
(
"dnode:%d, fqdn:%s ep:%s port:%d
is created
"
,
pDnode
->
dnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
pDnode
->
dnodePort
);
return
TSDB_CODE_SUCCESS
;
}
...
...
src/mnode/src/mnodeMnode.c
浏览文件 @
0eaf70c9
...
...
@@ -72,7 +72,7 @@ static int32_t mnodeMnodeActionInsert(SSdbRow *pRow) {
pDnode
->
isMgmt
=
true
;
mnodeDecDnodeRef
(
pDnode
);
mInfo
(
"mnode:%d, fqdn:%s ep:%s port:%u
, do insert action
"
,
pMnode
->
mnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
mInfo
(
"mnode:%d, fqdn:%s ep:%s port:%u
is created
"
,
pMnode
->
mnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
pDnode
->
dnodePort
);
return
TSDB_CODE_SUCCESS
;
}
...
...
@@ -202,13 +202,13 @@ void mnodeCancelGetNextMnode(void *pIter) {
void
mnodeUpdateMnodeEpSet
(
SMInfos
*
pMinfos
)
{
bool
set
=
false
;
SMInfos
mInfos
=
{
0
};
mInfo
(
"vgId:1, update mnodes epSet, numOfMnodes:%d pMinfos:%p"
,
mnodeGetMnodesNum
(),
pMinfos
);
if
(
pMinfos
!=
NULL
)
{
mInfo
(
"vgId:1, update mnodes epSet, numOfMinfos:%d"
,
pMinfos
->
mnodeNum
);
set
=
true
;
mInfos
=
*
pMinfos
;
}
else
{
}
else
{
mInfo
(
"vgId:1, update mnodes epSet, numOfMnodes:%d"
,
mnodeGetMnodesNum
());
int32_t
index
=
0
;
void
*
pIter
=
NULL
;
while
(
1
)
{
...
...
src/mnode/src/mnodeSdb.c
浏览文件 @
0eaf70c9
...
...
@@ -183,18 +183,23 @@ static int32_t sdbInitWal() {
return
-
1
;
}
sdbInfo
(
"vgId:1, open wal for restore"
);
sdbInfo
(
"vgId:1, open
sdb
wal for restore"
);
int32_t
code
=
walRestore
(
tsSdbMgmt
.
wal
,
NULL
,
sdbProcessWrite
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
sdbError
(
"vgId:1, failed to open wal for restore since %s"
,
tstrerror
(
code
));
return
-
1
;
}
sdbInfo
(
"vgId:1, sdb wal load success"
);
return
0
;
}
static
void
sdbRestoreTables
()
{
int32_t
totalRows
=
0
;
int32_t
numOfTables
=
0
;
sdbInfo
(
"vgId:1, sdb start to check for integrity"
);
for
(
int32_t
tableId
=
0
;
tableId
<
SDB_TABLE_MAX
;
++
tableId
)
{
SSdbTable
*
pTable
=
sdbGetTableFromId
(
tableId
);
if
(
pTable
==
NULL
)
continue
;
...
...
@@ -204,7 +209,7 @@ static void sdbRestoreTables() {
totalRows
+=
pTable
->
numOfRows
;
numOfTables
++
;
sdb
Debug
(
"vgId:1, sdb:%s is restor
ed, rows:%"
PRId64
,
pTable
->
name
,
pTable
->
numOfRows
);
sdb
Info
(
"vgId:1, sdb:%s is check
ed, rows:%"
PRId64
,
pTable
->
name
,
pTable
->
numOfRows
);
}
sdbInfo
(
"vgId:1, sdb is restored, mver:%"
PRIu64
" rows:%d tables:%d"
,
tsSdbMgmt
.
version
,
totalRows
,
numOfTables
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录