Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
880aaf57
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
880aaf57
编写于
9月 09, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
9月 09, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3454 from taosdata/feature/crash
Feature/crash
上级
3ab600ea
888e0f2a
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
12 addition
and
6 deletion
+12
-6
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+1
-0
src/mnode/src/mnodeMnode.c
src/mnode/src/mnodeMnode.c
+1
-0
src/mnode/src/mnodeSdb.c
src/mnode/src/mnodeSdb.c
+4
-4
src/vnode/src/vnodeMain.c
src/vnode/src/vnodeMain.c
+4
-0
tests/script/unique/account/paras.sim
tests/script/unique/account/paras.sim
+2
-2
未找到文件。
src/mnode/src/mnodeDnode.c
浏览文件 @
880aaf57
...
@@ -72,6 +72,7 @@ static int32_t mnodeDnodeActionInsert(SSdbOper *pOper) {
...
@@ -72,6 +72,7 @@ static int32_t mnodeDnodeActionInsert(SSdbOper *pOper) {
pDnode
->
lastAccess
=
tsAccessSquence
;
pDnode
->
lastAccess
=
tsAccessSquence
;
}
}
mInfo
(
"dnode:%d, fqdn:%s ep:%s port:%d, do insert action"
,
pDnode
->
dnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
pDnode
->
dnodePort
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
...
src/mnode/src/mnodeMnode.c
浏览文件 @
880aaf57
...
@@ -68,6 +68,7 @@ static int32_t mnodeMnodeActionInsert(SSdbOper *pOper) {
...
@@ -68,6 +68,7 @@ static int32_t mnodeMnodeActionInsert(SSdbOper *pOper) {
pDnode
->
isMgmt
=
true
;
pDnode
->
isMgmt
=
true
;
mnodeDecDnodeRef
(
pDnode
);
mnodeDecDnodeRef
(
pDnode
);
mInfo
(
"mnode:%d, fqdn:%s ep:%s port:%d, do insert action"
,
pMnode
->
mnodeId
,
pDnode
->
dnodeFqdn
,
pDnode
->
dnodeEp
,
pDnode
->
dnodePort
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
...
src/mnode/src/mnodeSdb.c
浏览文件 @
880aaf57
...
@@ -612,8 +612,8 @@ static int sdbWrite(void *param, void *data, int type) {
...
@@ -612,8 +612,8 @@ static int sdbWrite(void *param, void *data, int type) {
}
else
if
(
action
==
SDB_ACTION_DELETE
)
{
}
else
if
(
action
==
SDB_ACTION_DELETE
)
{
void
*
pRow
=
sdbGetRowMeta
(
pTable
,
pHead
->
cont
);
void
*
pRow
=
sdbGetRowMeta
(
pTable
,
pHead
->
cont
);
if
(
pRow
==
NULL
)
{
if
(
pRow
==
NULL
)
{
sdb
Error
(
"table:%s, failed to get object:%s from wal while dispos
e delete action"
,
pTable
->
tableName
,
sdb
Debug
(
"table:%s, object:%s not exist in hash, ignor
e delete action"
,
pTable
->
tableName
,
pHead
->
cont
);
sdbGetKeyStr
(
pTable
,
pHead
->
cont
)
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
SSdbOper
oper
=
{.
table
=
pTable
,
.
pObj
=
pRow
};
SSdbOper
oper
=
{.
table
=
pTable
,
.
pObj
=
pRow
};
...
@@ -621,8 +621,8 @@ static int sdbWrite(void *param, void *data, int type) {
...
@@ -621,8 +621,8 @@ static int sdbWrite(void *param, void *data, int type) {
}
else
if
(
action
==
SDB_ACTION_UPDATE
)
{
}
else
if
(
action
==
SDB_ACTION_UPDATE
)
{
void
*
pRow
=
sdbGetRowMeta
(
pTable
,
pHead
->
cont
);
void
*
pRow
=
sdbGetRowMeta
(
pTable
,
pHead
->
cont
);
if
(
pRow
==
NULL
)
{
if
(
pRow
==
NULL
)
{
sdb
Error
(
"table:%s, failed to get object:%s from wal while dispos
e update action"
,
pTable
->
tableName
,
sdb
Debug
(
"table:%s, object:%s not exist in hash, ignor
e update action"
,
pTable
->
tableName
,
pHead
->
cont
);
sdbGetKeyStr
(
pTable
,
pHead
->
cont
)
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
SSdbOper
oper
=
{.
rowSize
=
pHead
->
len
,
.
rowData
=
pHead
->
cont
,
.
table
=
pTable
};
SSdbOper
oper
=
{.
rowSize
=
pHead
->
len
,
.
rowData
=
pHead
->
cont
,
.
table
=
pTable
};
...
...
src/vnode/src/vnodeMain.c
浏览文件 @
880aaf57
...
@@ -677,9 +677,13 @@ static int32_t vnodeSaveCfg(SMDCreateVnodeMsg *pVnodeCfg) {
...
@@ -677,9 +677,13 @@ static int32_t vnodeSaveCfg(SMDCreateVnodeMsg *pVnodeCfg) {
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
quorum
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
quorum
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
quorum
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
quorum
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeInfos
\"
: [{
\n
"
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeInfos
\"
: [{
\n
"
);
vInfo
(
"vgId:%d, save vnode cfg, replica:%d"
,
pVnodeCfg
->
cfg
.
vgId
,
pVnodeCfg
->
cfg
.
replications
);
for
(
int32_t
i
=
0
;
i
<
pVnodeCfg
->
cfg
.
replications
;
i
++
)
{
for
(
int32_t
i
=
0
;
i
<
pVnodeCfg
->
cfg
.
replications
;
i
++
)
{
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeId
\"
: %d,
\n
"
,
pVnodeCfg
->
nodes
[
i
].
nodeId
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeId
\"
: %d,
\n
"
,
pVnodeCfg
->
nodes
[
i
].
nodeId
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeEp
\"
:
\"
%s
\"\n
"
,
pVnodeCfg
->
nodes
[
i
].
nodeEp
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
nodeEp
\"
:
\"
%s
\"\n
"
,
pVnodeCfg
->
nodes
[
i
].
nodeEp
);
vInfo
(
"vgId:%d, save vnode cfg, nodeId:%d nodeEp:%s"
,
pVnodeCfg
->
cfg
.
vgId
,
pVnodeCfg
->
nodes
[
i
].
nodeId
,
pVnodeCfg
->
nodes
[
i
].
nodeEp
);
if
(
i
<
pVnodeCfg
->
cfg
.
replications
-
1
)
{
if
(
i
<
pVnodeCfg
->
cfg
.
replications
-
1
)
{
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
" },{
\n
"
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
" },{
\n
"
);
...
...
tests/script/unique/account/paras.sim
浏览文件 @
880aaf57
...
@@ -14,10 +14,10 @@ print $data00 $data01 $data02 $data03 $data04 $data05 $data06
...
@@ -14,10 +14,10 @@ print $data00 $data01 $data02 $data03 $data04 $data05 $data06
if $data00 != root then
if $data00 != root then
return -1
return -1
endi
endi
if $data02 != 3/1
0
then
if $data02 != 3/1
28
then
return -1
return -1
endi
endi
if $data03 != 0/
64
then
if $data03 != 0/
128
then
return -1
return -1
endi
endi
if $data04 != 0/2147483647 then
if $data04 != 0/2147483647 then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录