MXS-2142: Set causal_reads_timeout default to 10

The causal_reads_timeout default value is too long when considering the
behavioral changes that MXS-2141 introduced. With a 10 second default
value, a result is returned to the client in a reasonable amount of time.
This commit is contained in:
Markus Mäkelä
2018-11-06 12:32:20 +02:00
parent e56372b153
commit 4341c2b6e2
2 changed files with 3 additions and 3 deletions

View File

@ -468,7 +468,7 @@ statements.
INSERT INTO test.t1 (id) VALUES (1);
SET @maxscale_secret_variable=(
SELECT CASE
WHEN MASTER_GTID_WAIT('0-3000-8', 120) = 0 THEN 1
WHEN MASTER_GTID_WAIT('0-3000-8', 10) = 0 THEN 1
ELSE (SELECT 1 FROM INFORMATION_SCHEMA.ENGINES)
END);
SELECT * FROM test.t1 WHERE id = 1;
@ -486,7 +486,7 @@ when the slave timed out.
### `causal_reads_timeout`
The timeout for the slave synchronization done by `causal_reads`. The
default value is 120 seconds.
default value is 10 seconds.
## Routing hints