feat(ha-commit-durability): cap commit self-contribution at durable_lsn + durable-advance commit wake (task 2.2)
This commit is contained in:
parent
cc83caf5a0
commit
c41edc515e
10 changed files with 395 additions and 13 deletions
|
|
@ -79,6 +79,10 @@ static void ce_setup(int n_peers, int n_standbys, uint64_t appended_lsn)
|
|||
* sentinel), so current_lsn = 1 = "first entry will be lsn 1". */
|
||||
g_p.current_lsn = appended_lsn + 1;
|
||||
atomic_store(&g_p.committed_lsn, 0);
|
||||
/* ha-commit-durability 2.2: self caps at durable_lsn. Stub fixture (no
|
||||
* flusher) — treat the appended log as durable up front, preserving the
|
||||
* pre-durability "self covers every appended entry" model. */
|
||||
atomic_store(&g_p.durable_lsn, appended_lsn);
|
||||
TEST_ASSERT_EQUAL_INT(0, commit_engine_init(&g_ce, &g_p, n_peers, 8));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue