feat(ha-commit-durability): add --wal-sync-ms flush-cadence override (task 1.1)
This commit is contained in:
parent
80bb1d766e
commit
1ca2d640cb
7 changed files with 206 additions and 0 deletions
|
|
@ -1270,6 +1270,11 @@ int cluster_init_phase2(cluster_t* c)
|
|||
if (c->myconf->sync_timeout_ms > 0)
|
||||
pcfg.sync_timeout_ms = c->myconf->sync_timeout_ms;
|
||||
|
||||
/* --wal-sync-ms flush-cadence override (0 = keep the persist
|
||||
* default). Applied before persist_init so persistence starts at
|
||||
* the requested cadence (ha-commit-durability Req 3.1). */
|
||||
persist_config_set_wal_sync_ms(&pcfg, c->myconf->wal_sync_ms);
|
||||
|
||||
persist_set_workdir(&c->persist, workdir, name);
|
||||
rc = persist_init(&c->persist, &pcfg, c);
|
||||
if (rc != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue