feat(ha-heartbeat-committed-propagation): migrate last_known_committed_config_tag to _Atomic (task 1.1)
Mirror the sibling last_known_committed_lsn: all writes release, reads acquire. Prereq for a heartbeat-receive writer + the ctrlstatus reader to interact safely (Req 2.3). Pure access migration, no behavior change; controller suite 0 failures. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9817813f54
commit
f4327ce4f6
6 changed files with 20 additions and 14 deletions
|
|
@ -374,7 +374,8 @@ void cluster_apply_ctrlhello_reply(cluster_t *c, uint64_t committed_lsn,
|
|||
{
|
||||
atomic_store_explicit(&c->ha.last_known_committed_lsn, committed_lsn,
|
||||
memory_order_release);
|
||||
c->ha.last_known_committed_config_tag = config_tag;
|
||||
atomic_store_explicit(&c->ha.last_known_committed_config_tag, config_tag,
|
||||
memory_order_release);
|
||||
INFO("HA: CtrlHelloReply from primary: committed_lsn=%" PRIu64
|
||||
" config_tag=%" PRIu64, committed_lsn, config_tag);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue