test(ha-convergence-recovery): RED clamped rejoin reconciliation tests + intake extraction (task 3.1)
This commit is contained in:
parent
09103a3141
commit
5521720b0c
5 changed files with 300 additions and 9 deletions
|
|
@ -287,14 +287,9 @@ static int myreq_handler(vtask_t* task)
|
|||
/* Standby receives CtrlHelloReply from primary — update last known
|
||||
* committed LSN and config tag for use in RDHUP failover path. */
|
||||
ctrl_hello_reply_t *chrep = request.body.replymsg->data.ctrlhelloreplymsg;
|
||||
if (chrep) {
|
||||
atomic_store_explicit(&c->ha.last_known_committed_lsn,
|
||||
chrep->committed_lsn, memory_order_release);
|
||||
c->ha.last_known_committed_config_tag = chrep->config_tag;
|
||||
INFO("HA: CtrlHelloReply from primary: committed_lsn=%lu config_tag=%lu",
|
||||
(unsigned long)chrep->committed_lsn,
|
||||
(unsigned long)chrep->config_tag);
|
||||
}
|
||||
if (chrep)
|
||||
cluster_apply_ctrlhello_reply(c, chrep->committed_lsn,
|
||||
chrep->config_tag);
|
||||
} else {
|
||||
/* Legacy plain OP_hello (nop path) */
|
||||
reply.status = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue