~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/rpl_init_slave_func.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
'#--------------------FN_DYNVARS_037_01-------------------------#'
 
8
SET @@global.init_slave = "SET @a = 10";
 
9
'connect (con1,localhost,root,,)'
 
10
'connection con1'
 
11
SELECT @@global.init_slave;
 
12
@@global.init_slave
 
13
SET @a = 10
 
14
'connection master'
 
15
'#--------------------FN_DYNVARS_037_02-------------------------#'
 
16
'check if value in slave opt file is executed'
 
17
'connection slave'
 
18
show variables like 'init_slave';
 
19
Variable_name   Value
 
20
init_slave      set global max_connections=500
 
21
show variables like 'max_connections';
 
22
Variable_name   Value
 
23
max_connections 500
 
24
reset master;
 
25
'check if value in slave opt file doesnt apply to master'
 
26
'connection master'
 
27
show variables like 'init_slave';
 
28
Variable_name   Value
 
29
init_slave      SET @a = 10
 
30
show variables like 'max_connections';
 
31
Variable_name   Value
 
32
max_connections 151
 
33
'connection slave'
 
34
'try creating a temporary variable in init_slave'
 
35
SET @@global.init_slave = "SET @a=5";
 
36
stop slave;
 
37
reset slave;
 
38
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
39
start slave;
 
40
SHOW VARIABLES LIKE 'init_slave';
 
41
Variable_name   Value
 
42
init_slave      SET @a=5
 
43
SELECT @a;
 
44
@a
 
45
NULL
 
46
'Bug#35365 SET statement in init_slave not execute if slave is restarted'
 
47
set global max_connections= default;