1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-10161: wsrep_sync_wait not enabled when set to 1 in config file

Since wsrep_sync_wait & wsrep_causal_reads variables are related,
they are always kept in sync whenever one of them changes.
Same is tried on server start, where wsrep_sync_wait get updated
based on wsrep_causal_reads' value. But, since wsrep_causal_reads
is OFF by default, wsrep_sync_wait's value gets modified and loses
its WSREP_SYNC_WAIT_BEFORE_READ bit.

Fixed by syncing wsrep_sync_wait & wsrep_causal_reads values
individually on server start in mysqld_get_one_option() based
on command line arguments used.
This commit is contained in:
Nirbhay Choubey
2016-06-27 18:30:07 -04:00
parent aa9c8f2a0d
commit 7ff44b1a83
7 changed files with 33 additions and 5 deletions

View File

@@ -561,8 +561,6 @@ int wsrep_init()
wsrep_sst_auth_init(wsrep_sst_auth);
wsrep_causal_reads_update(&global_system_variables);
wsrep_ready_set(FALSE);
assert(wsrep_provider);