summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/rpl_semi_sync_master_timeout_basic.result
blob: 78fee2a91dceb74ac437f5108525a3a825f0edaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
select @@global.rpl_semi_sync_master_timeout;
@@global.rpl_semi_sync_master_timeout
10000
SET @start_global_value = @@global.rpl_semi_sync_master_timeout;
Assuming value will not be more then 100 sec
select @@global.rpl_semi_sync_master_timeout between 1 and 100000;
@@global.rpl_semi_sync_master_timeout between 1 and 100000
1
select @@session.rpl_semi_sync_master_timeout;
ERROR HY000: Variable 'rpl_semi_sync_master_timeout' is a GLOBAL variable
show global variables like 'rpl_semi_sync_master_timeout';
Variable_name	Value
rpl_semi_sync_master_timeout	10000
show session variables like 'rpl_semi_sync_master_timeout';
Variable_name	Value
rpl_semi_sync_master_timeout	10000
select * from information_schema.global_variables where variable_name='rpl_semi_sync_master_timeout';
VARIABLE_NAME	VARIABLE_VALUE
RPL_SEMI_SYNC_MASTER_TIMEOUT	10000
select * from information_schema.session_variables where variable_name='rpl_semi_sync_master_timeout';
VARIABLE_NAME	VARIABLE_VALUE
RPL_SEMI_SYNC_MASTER_TIMEOUT	10000
set global rpl_semi_sync_master_timeout=42;
set session rpl_semi_sync_master_timeout=99;
ERROR HY000: Variable 'rpl_semi_sync_master_timeout' is a GLOBAL variable and should be set with SET GLOBAL
select @@global.rpl_semi_sync_master_timeout;
@@global.rpl_semi_sync_master_timeout
42
select @@session.rpl_semi_sync_master_timeout;
ERROR HY000: Variable 'rpl_semi_sync_master_timeout' is a GLOBAL variable
show global variables like 'rpl_semi_sync_master_timeout';
Variable_name	Value
rpl_semi_sync_master_timeout	42
show session variables like 'rpl_semi_sync_master_timeout';
Variable_name	Value
rpl_semi_sync_master_timeout	42
select * from information_schema.global_variables where variable_name='rpl_semi_sync_master_timeout';
VARIABLE_NAME	VARIABLE_VALUE
RPL_SEMI_SYNC_MASTER_TIMEOUT	42
select * from information_schema.session_variables where variable_name='rpl_semi_sync_master_timeout';
VARIABLE_NAME	VARIABLE_VALUE
RPL_SEMI_SYNC_MASTER_TIMEOUT	42
set global rpl_semi_sync_master_timeout=1.1;
ERROR 42000: Incorrect argument type to variable 'rpl_semi_sync_master_timeout'
set global rpl_semi_sync_master_timeout=1e1;
ERROR 42000: Incorrect argument type to variable 'rpl_semi_sync_master_timeout'
set global rpl_semi_sync_master_timeout="some text";
ERROR 42000: Incorrect argument type to variable 'rpl_semi_sync_master_timeout'
SET @@global.rpl_semi_sync_master_timeout = @start_global_value;
select @@global.rpl_semi_sync_master_timeout;
@@global.rpl_semi_sync_master_timeout
10000