diff --git a/src/inc/tsync.h b/src/inc/tsync.h index 16ce1de83c21e5c0826eebd4e9459fe579f13cec..39c116c9cbaf49b943a02c1e61c64ad3b507412b 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