feat(ha-config-bootstrap): implement OP_ctrlHello state sync handler (task 9.3)
This commit is contained in:
parent
0ec0ffa7e3
commit
94bf5d94b8
9 changed files with 396 additions and 3 deletions
|
|
@ -557,6 +557,7 @@ struct RequestReply $C.mapname("xce_reply_t"){
|
|||
replconfigreplymsg @8: ReplConfigReply;
|
||||
replconfigpushreplymsg @9: ReplConfigPushReply;
|
||||
upgradeconfigreplymsg @10: UpgradeConfigReply;
|
||||
ctrlhelloreplymsg @13: CtrlHelloReply;
|
||||
}
|
||||
|
||||
redirectHost @11: Text $C.mapname("redirect_host");
|
||||
|
|
@ -621,6 +622,7 @@ struct Request $C.mapname("xce_request_t"){
|
|||
replconfigpushrequestmsg @23: ReplConfigPushRequest;
|
||||
upgradeconfigrequestmsg @24: UpgradeConfigRequest;
|
||||
heartbeatmsg @25: HeartbeatMsg;
|
||||
ctrlhellomsg @26: CtrlHelloRequest;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -827,3 +829,16 @@ struct WalCatchupEntry $C.mapname("wal_catchup_entry_t") {
|
|||
entryType @1 :UInt8 $C.mapname("entry_type");
|
||||
payload @2 :Data $C.mapname("payload");
|
||||
}
|
||||
|
||||
struct CtrlHelloRequest $C.mapname("ctrl_hello_req_t") {
|
||||
name @0 :Text $C.mapname("name");
|
||||
key @1 :Data $C.mapname("key");
|
||||
appliedLsn @2 :UInt64 $C.mapname("applied_lsn");
|
||||
configTag @3 :UInt64 $C.mapname("config_tag");
|
||||
}
|
||||
|
||||
struct CtrlHelloReply $C.mapname("ctrl_hello_reply_t") {
|
||||
committedLsn @0 :UInt64 $C.mapname("committed_lsn");
|
||||
needsSnapshot @1 :Bool $C.mapname("needs_snapshot");
|
||||
configTag @2 :UInt64 $C.mapname("config_tag");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue