Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
888c3d2c
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
888c3d2c
编写于
12月 08, 2022
作者:
X
xleili
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' into fix/xiaolei/centos7-cannot-write-taosdservice-in-system-after-install
上级
68ff4961
8fd11c5f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
34 addition
and
12 deletion
+34
-12
include/client/taos.h
include/client/taos.h
+1
-1
source/dnode/mnode/impl/src/mndSync.c
source/dnode/mnode/impl/src/mndSync.c
+7
-3
source/dnode/vnode/src/tsdb/tsdbRead.c
source/dnode/vnode/src/tsdb/tsdbRead.c
+1
-1
source/libs/sync/src/syncMain.c
source/libs/sync/src/syncMain.c
+2
-1
source/libs/transport/src/transCli.c
source/libs/transport/src/transCli.c
+23
-6
未找到文件。
include/client/taos.h
浏览文件 @
888c3d2c
...
...
@@ -149,7 +149,7 @@ DLL_EXPORT TAOS *taos_connect(const char *ip, const char *user, const char
DLL_EXPORT
TAOS
*
taos_connect_auth
(
const
char
*
ip
,
const
char
*
user
,
const
char
*
auth
,
const
char
*
db
,
uint16_t
port
);
DLL_EXPORT
void
taos_close
(
TAOS
*
taos
);
const
char
*
taos_data_type
(
int
type
);
DLL_EXPORT
const
char
*
taos_data_type
(
int
type
);
DLL_EXPORT
TAOS_STMT
*
taos_stmt_init
(
TAOS
*
taos
);
DLL_EXPORT
TAOS_STMT
*
taos_stmt_init_with_reqid
(
TAOS
*
taos
,
int64_t
reqid
);
...
...
source/dnode/mnode/impl/src/mndSync.c
浏览文件 @
888c3d2c
...
...
@@ -149,9 +149,13 @@ void mndRestoreFinish(const SSyncFSM *pFsm) {
SMnode
*
pMnode
=
pFsm
->
data
;
if
(
!
pMnode
->
deploy
)
{
mInfo
(
"vgId:1, sync restore finished, and will handle outstanding transactions"
);
mndTransPullup
(
pMnode
);
mndSetRestored
(
pMnode
,
true
);
if
(
!
pMnode
->
restored
)
{
mInfo
(
"vgId:1, sync restore finished, and will handle outstanding transactions"
);
mndTransPullup
(
pMnode
);
mndSetRestored
(
pMnode
,
true
);
}
else
{
mInfo
(
"vgId:1, sync restore finished, repeat call"
);
}
}
else
{
mInfo
(
"vgId:1, sync restore finished"
);
}
...
...
source/dnode/vnode/src/tsdb/tsdbRead.c
浏览文件 @
888c3d2c
...
...
@@ -3129,7 +3129,7 @@ bool hasBeenDropped(const SArray* pDelList, int32_t* index, TSDBKEY* pKey, int32
return
false
;
}
else
if
(
pKey
->
ts
==
last
->
ts
)
{
TSDBKEY
*
prev
=
taosArrayGet
(
pDelList
,
num
-
2
);
return
(
prev
->
version
>=
pKey
->
version
);
return
(
prev
->
version
>=
pKey
->
version
&&
prev
->
version
<=
pVerRange
->
maxVer
&&
prev
->
version
>=
pVerRange
->
minVer
);
}
}
else
{
TSDBKEY
*
pCurrent
=
taosArrayGet
(
pDelList
,
*
index
);
...
...
source/libs/sync/src/syncMain.c
浏览文件 @
888c3d2c
...
...
@@ -1839,7 +1839,8 @@ void syncNodeBecomeLeader(SSyncNode* pSyncNode, const char* debugStr) {
#endif
// close receiver
if
(
snapshotReceiverIsStart
(
pSyncNode
->
pNewNodeReceiver
))
{
if
(
pSyncNode
!=
NULL
&&
pSyncNode
->
pNewNodeReceiver
!=
NULL
&&
snapshotReceiverIsStart
(
pSyncNode
->
pNewNodeReceiver
))
{
snapshotReceiverForceStop
(
pSyncNode
->
pNewNodeReceiver
);
}
...
...
source/libs/transport/src/transCli.c
浏览文件 @
888c3d2c
...
...
@@ -1493,18 +1493,35 @@ FORCE_INLINE bool cliTryExtractEpSet(STransMsg* pResp, SEpSet* dst) {
bool
cliResetEpset
(
STransConnCtx
*
pCtx
,
STransMsg
*
pResp
,
bool
hasEpSet
)
{
bool
noDelay
=
true
;
if
(
hasEpSet
==
false
)
{
// assert(pResp->contLen == 0);
if
(
pResp
->
contLen
==
0
)
{
if
(
pCtx
->
epsetRetryCnt
>=
pCtx
->
epSet
.
numOfEps
)
{
noDelay
=
false
;
}
else
{
EPSET_FORWARD_INUSE
(
&
pCtx
->
epSet
);
}
}
else
{
if
(
pCtx
->
epsetRetryCnt
>=
pCtx
->
epSet
.
numOfEps
)
{
noDelay
=
false
;
}
else
if
(
pResp
->
contLen
!=
0
)
{
SEpSet
epSet
;
int32_t
valid
=
tDeserializeSEpSet
(
pResp
->
pCont
,
pResp
->
contLen
,
&
epSet
);
if
(
valid
<
0
)
{
tDebug
(
"get invalid epset, epset equal, continue"
);
if
(
pCtx
->
epsetRetryCnt
>=
pCtx
->
epSet
.
numOfEps
)
{
noDelay
=
false
;
}
else
{
EPSET_FORWARD_INUSE
(
&
pCtx
->
epSet
);
}
}
else
{
EPSET_FORWARD_INUSE
(
&
pCtx
->
epSet
);
if
(
!
transEpSetIsEqual
(
&
pCtx
->
epSet
,
&
epSet
))
{
tDebug
(
"epset not equal, retry new epset"
);
pCtx
->
epSet
=
epSet
;
noDelay
=
false
;
}
else
{
if
(
pCtx
->
epsetRetryCnt
>=
pCtx
->
epSet
.
numOfEps
)
{
noDelay
=
false
;
}
else
{
tDebug
(
"epset equal, continue"
);
EPSET_FORWARD_INUSE
(
&
pCtx
->
epSet
);
}
}
}
}
}
else
{
...
...
@@ -1584,7 +1601,7 @@ bool cliGenRetryRule(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
addConnToPool
(
pThrd
->
pool
,
pConn
);
}
else
if
(
code
==
TSDB_CODE_SYN_RESTORING
)
{
tTrace
(
"code str %s, contlen:%d 0"
,
tstrerror
(
code
),
pResp
->
contLen
);
noDelay
=
cliResetEpset
(
pCtx
,
pResp
,
fals
e
);
noDelay
=
cliResetEpset
(
pCtx
,
pResp
,
tru
e
);
addConnToPool
(
pThrd
->
pool
,
pConn
);
transFreeMsg
(
pResp
->
pCont
);
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录