From e1a3d7f295ff31fb5ea080f13609678bc3f56d6e Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Wed, 8 Apr 2020 09:40:20 +0800 Subject: [PATCH] remove SWalHead in tsync.h --- src/inc/tsync.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/inc/tsync.h b/src/inc/tsync.h index 16ce1de83c..39c116c9cb 100644 --- a/src/inc/tsync.h +++ b/src/inc/tsync.h @@ -36,34 +36,25 @@ typedef enum _TAOS_SYNC_STATUS { TAOS_SYNC_STATUS_CACHE, } ESyncStatus; -typedef struct { - int8_t msgType; - int8_t reserved[3]; - int32_t len; - uint64_t version; - uint64_t cksum; - char cont[]; -} SWalHead; - typedef struct { uint32_t nodeId; // node ID assigned by TDengine uint32_t nodeIp; // node IP address char name[TSDB_FILENAME_LEN]; // external node name } SNodeInfo; -typedef struct { - int selfIndex; - uint32_t nodeId[TAOS_SYNC_MAX_REPLICA]; - int role[TAOS_SYNC_MAX_REPLICA]; -} SNodesRole; - typedef struct { uint32_t arbitratorIp; // arbitrator IP address int8_t quorum; // number of confirms required, >=1 int8_t replica; // number of replications, >=1 SNodeInfo nodeInfo[TAOS_SYNC_MAX_REPLICA]; } SSyncCfg; - + +typedef struct { + int selfIndex; + uint32_t nodeId[TAOS_SYNC_MAX_REPLICA]; + int role[TAOS_SYNC_MAX_REPLICA]; +} SNodesRole; + typedef struct { char label[20]; // for debug purpose char path[128]; // path to the file -- GitLab