Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
98b77fe8
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
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看板
提交
98b77fe8
编写于
11月 09, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact: adjust head file
上级
fdad1087
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
1 addition
and
69 deletion
+1
-69
source/libs/sync/inc/syncAppendEntries.h
source/libs/sync/inc/syncAppendEntries.h
+0
-4
source/libs/sync/inc/syncAppendEntriesReply.h
source/libs/sync/inc/syncAppendEntriesReply.h
+0
-4
source/libs/sync/inc/syncCommit.h
source/libs/sync/inc/syncCommit.h
+0
-4
source/libs/sync/inc/syncElection.h
source/libs/sync/inc/syncElection.h
+0
-4
source/libs/sync/inc/syncIndexMgr.h
source/libs/sync/inc/syncIndexMgr.h
+0
-4
source/libs/sync/inc/syncMessage.h
source/libs/sync/inc/syncMessage.h
+0
-5
source/libs/sync/inc/syncRaftCfg.h
source/libs/sync/inc/syncRaftCfg.h
+0
-5
source/libs/sync/inc/syncRaftEntry.h
source/libs/sync/inc/syncRaftEntry.h
+0
-5
source/libs/sync/inc/syncRaftLog.h
source/libs/sync/inc/syncRaftLog.h
+0
-4
source/libs/sync/inc/syncRaftStore.h
source/libs/sync/inc/syncRaftStore.h
+0
-5
source/libs/sync/inc/syncReplication.h
source/libs/sync/inc/syncReplication.h
+0
-4
source/libs/sync/inc/syncRequestVote.h
source/libs/sync/inc/syncRequestVote.h
+0
-4
source/libs/sync/inc/syncRequestVoteReply.h
source/libs/sync/inc/syncRequestVoteReply.h
+0
-4
source/libs/sync/inc/syncRespMgr.h
source/libs/sync/inc/syncRespMgr.h
+0
-4
source/libs/sync/inc/syncSnapshot.h
source/libs/sync/inc/syncSnapshot.h
+0
-5
source/libs/sync/inc/syncTimeout.h
source/libs/sync/inc/syncTimeout.h
+0
-4
source/libs/sync/src/syncRaftEntry.c
source/libs/sync/src/syncRaftEntry.c
+1
-0
未找到文件。
source/libs/sync/inc/syncAppendEntries.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
// TLA+ Spec
// HandleAppendEntriesRequest(i, j, m) ==
...
...
source/libs/sync/inc/syncAppendEntriesReply.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
// TLA+ Spec
// HandleAppendEntriesResponse(i, j, m) ==
...
...
source/libs/sync/inc/syncCommit.h
浏览文件 @
98b77fe8
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "taosdef.h"
// \* Leader i advances its commitIndex.
// \* This is done as a separate step from handling AppendEntries responses,
...
...
source/libs/sync/inc/syncElection.h
浏览文件 @
98b77fe8
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "taosdef.h"
// TLA+ Spec
// RequestVote(i, j) ==
...
...
source/libs/sync/inc/syncIndexMgr.h
浏览文件 @
98b77fe8
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "taosdef.h"
// SIndexMgr -----------------------------
typedef
struct
SSyncIndexMgr
{
...
...
source/libs/sync/inc/syncMessage.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
#include "syncInt.h"
#include "taosdef.h"
// ---------------------------------------------
cJSON
*
syncRpcMsg2Json
(
SRpcMsg
*
pRpcMsg
);
...
...
source/libs/sync/inc/syncRaftCfg.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
#include "syncInt.h"
#include "taosdef.h"
#define CONFIG_FILE_LEN 2048
...
...
source/libs/sync/inc/syncRaftEntry.h
浏览文件 @
98b77fe8
...
...
@@ -20,13 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
#include "tref.h"
#include "tskiplist.h"
typedef
struct
SSyncRaftEntry
{
...
...
source/libs/sync/inc/syncRaftLog.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncRaftEntry.h"
#include "taosdef.h"
#include "wal.h"
typedef
struct
SSyncLogStoreData
{
...
...
source/libs/sync/inc/syncRaftStore.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
#include "syncInt.h"
#include "taosdef.h"
#define RAFT_STORE_BLOCK_SIZE 512
#define RAFT_STORE_PATH_LEN (TSDB_FILENAME_LEN * 2)
...
...
source/libs/sync/inc/syncReplication.h
浏览文件 @
98b77fe8
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "taosdef.h"
// TLA+ Spec
// AppendEntries(i, j) ==
...
...
source/libs/sync/inc/syncRequestVote.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
// TLA+ Spec
// HandleRequestVoteRequest(i, j, m) ==
...
...
source/libs/sync/inc/syncRequestVoteReply.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
// TLA+ Spec
// HandleRequestVoteResponse(i, j, m) ==
...
...
source/libs/sync/inc/syncRespMgr.h
浏览文件 @
98b77fe8
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "taosdef.h"
typedef
struct
SRespStub
{
SRpcMsg
rpcMsg
;
...
...
source/libs/sync/inc/syncSnapshot.h
浏览文件 @
98b77fe8
...
...
@@ -20,13 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
#define SYNC_SNAPSHOT_SEQ_INVALID -2
#define SYNC_SNAPSHOT_SEQ_FORCE_CLOSE -3
...
...
source/libs/sync/inc/syncTimeout.h
浏览文件 @
98b77fe8
...
...
@@ -20,12 +20,8 @@
extern
"C"
{
#endif
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "syncInt.h"
#include "syncMessage.h"
#include "taosdef.h"
// TLA+ Spec
// Timeout(i) == /\ state[i] \in {Follower, Candidate}
...
...
source/libs/sync/src/syncRaftEntry.c
浏览文件 @
98b77fe8
...
...
@@ -16,6 +16,7 @@
#define _DEFAULT_SOURCE
#include "syncRaftEntry.h"
#include "syncUtil.h"
#include "tref.h"
SSyncRaftEntry
*
syncEntryBuild
(
int32_t
dataLen
)
{
int32_t
bytes
=
sizeof
(
SSyncRaftEntry
)
+
dataLen
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录