Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3e591a02
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1191
Star
22018
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看板
提交
3e591a02
编写于
3月 02, 2022
作者:
M
Minghao Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sync io
上级
5a4fbcf2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
22 deletion
+20
-22
source/libs/sync/inc/syncIO.h
source/libs/sync/inc/syncIO.h
+3
-3
source/libs/sync/src/syncIO.c
source/libs/sync/src/syncIO.c
+1
-1
source/libs/sync/test/CMakeLists.txt
source/libs/sync/test/CMakeLists.txt
+10
-10
source/libs/sync/test/syncIOTickPingTest.cpp
source/libs/sync/test/syncIOTickPingTest.cpp
+0
-0
source/libs/sync/test/syncIOTickQTest.cpp
source/libs/sync/test/syncIOTickQTest.cpp
+0
-0
source/libs/sync/test/syncPingTest.cpp
source/libs/sync/test/syncPingTest.cpp
+6
-8
未找到文件。
source/libs/sync/inc/syncIO.h
浏览文件 @
3e591a02
...
...
@@ -31,11 +31,11 @@ extern "C" {
typedef
struct
SSyncIO
{
STaosQueue
*
pMsgQ
;
STaosQset
*
pQset
;
STaosQset
*
pQset
;
pthread_t
consumerTid
;
void
*
serverRpc
;
void
*
clientRpc
;
void
*
serverRpc
;
void
*
clientRpc
;
SEpSet
myAddr
;
void
*
ioTimerTickQ
;
...
...
source/libs/sync/src/syncIO.c
浏览文件 @
3e591a02
...
...
@@ -188,7 +188,7 @@ static void *syncIOConsumerFunc(void *param) {
SSyncIO
*
io
=
param
;
STaosQall
*
qall
;
SRpcMsg
*
pRpcMsg
,
rpcMsg
;
SRpcMsg
*
pRpcMsg
,
rpcMsg
;
int
type
;
qall
=
taosAllocateQall
();
...
...
source/libs/sync/test/CMakeLists.txt
浏览文件 @
3e591a02
...
...
@@ -2,8 +2,8 @@ add_executable(syncTest "")
add_executable
(
syncEnvTest
""
)
add_executable
(
syncPingTest
""
)
add_executable
(
syncEncodeTest
""
)
add_executable
(
syncIOTickQ
""
)
add_executable
(
syncIOTickPing
""
)
add_executable
(
syncIOTickQ
Test
""
)
add_executable
(
syncIOTickPing
Test
""
)
target_sources
(
syncTest
...
...
@@ -22,13 +22,13 @@ target_sources(syncEncodeTest
PRIVATE
"syncEncodeTest.cpp"
)
target_sources
(
syncIOTickQ
target_sources
(
syncIOTickQ
Test
PRIVATE
"syncIOTickQ.cpp"
"syncIOTickQ
Test
.cpp"
)
target_sources
(
syncIOTickPing
target_sources
(
syncIOTickPing
Test
PRIVATE
"syncIOTickPing.cpp"
"syncIOTickPing
Test
.cpp"
)
...
...
@@ -52,12 +52,12 @@ target_include_directories(syncEncodeTest
"
${
CMAKE_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
target_include_directories
(
syncIOTickQ
target_include_directories
(
syncIOTickQ
Test
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
target_include_directories
(
syncIOTickPing
target_include_directories
(
syncIOTickPing
Test
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
...
...
@@ -80,11 +80,11 @@ target_link_libraries(syncEncodeTest
sync
gtest_main
)
target_link_libraries
(
syncIOTickQ
target_link_libraries
(
syncIOTickQ
Test
sync
gtest_main
)
target_link_libraries
(
syncIOTickPing
target_link_libraries
(
syncIOTickPing
Test
sync
gtest_main
)
...
...
source/libs/sync/test/syncIOTickPing.cpp
→
source/libs/sync/test/syncIOTickPing
Test
.cpp
浏览文件 @
3e591a02
文件已移动
source/libs/sync/test/syncIOTickQ.cpp
→
source/libs/sync/test/syncIOTickQ
Test
.cpp
浏览文件 @
3e591a02
文件已移动
source/libs/sync/test/syncPingTest.cpp
浏览文件 @
3e591a02
...
...
@@ -63,17 +63,15 @@ int main() {
ret
=
syncEnvStart
();
assert
(
ret
==
0
);
/*
SSyncNode* pSyncNode = doSync();
SSyncNode
*
pSyncNode
=
doSync
();
ret = syncNodeStartPingTimer(pSyncNode);
assert(ret == 0);
ret
=
syncNodeStartPingTimer
(
pSyncNode
);
assert
(
ret
==
0
);
taosMsleep(5000);
taosMsleep
(
5000
);
ret = syncNodeStopPingTimer(pSyncNode);
assert(ret == 0);
*/
ret
=
syncNodeStopPingTimer
(
pSyncNode
);
assert
(
ret
==
0
);
while
(
1
)
{
taosMsleep
(
1000
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录