mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
MDEV-6646 : global.wsrep_causal_reads no longer honored
During THD initialization, the value of wsrep_causal_reads (now being exclusively handled via wsrep_sync_wait, lp:1277053) was being ignored. Fixed by updating wsrep_sync_wait appropriately.
This commit is contained in:
@@ -1484,6 +1484,14 @@ void THD::init(void)
|
|||||||
wsrep_bf_thd = NULL;
|
wsrep_bf_thd = NULL;
|
||||||
wsrep_TOI_pre_query = NULL;
|
wsrep_TOI_pre_query = NULL;
|
||||||
wsrep_TOI_pre_query_len = 0;
|
wsrep_TOI_pre_query_len = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@wsrep_causal_reads is now being handled via wsrep_sync_wait, update it
|
||||||
|
appropriately.
|
||||||
|
*/
|
||||||
|
if (variables.wsrep_causal_reads)
|
||||||
|
variables.wsrep_sync_wait|= WSREP_SYNC_WAIT_BEFORE_READ;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
if (variables.sql_log_bin)
|
if (variables.sql_log_bin)
|
||||||
variables.option_bits|= OPTION_BIN_LOG;
|
variables.option_bits|= OPTION_BIN_LOG;
|
||||||
|
Reference in New Issue
Block a user