File: status_vars.result

package info (click to toggle)
mariadb-10.0 10.0.32-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 476,064 kB
  • sloc: cpp: 1,400,131; ansic: 832,140; perl: 54,391; sh: 41,304; pascal: 32,365; yacc: 14,921; xml: 5,257; sql: 4,667; cs: 4,647; makefile: 4,555; ruby: 4,465; python: 2,292; lex: 1,427; java: 941; asm: 295; awk: 54; php: 22; sed: 16
file content (97 lines) | stat: -rw-r--r-- 2,853 bytes parent folder | download | duplicates (5)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
call mtr.add_suppression("Connection 'master1' already exists");
change master 'master1' to 
master_port=MYPORT_1, 
master_host='127.0.0.1', 
master_user='root',
master_heartbeat_period = 25;
start slave 'master1';
set default_master_connection = 'master1';
include/wait_for_slave_to_start.inc
set default_master_connection = '';
change master to
master_port=MYPORT_2,
master_host='127.0.0.1',
master_user='root',
master_heartbeat_period=35;
start slave;
include/wait_for_slave_to_start.inc
#
# Check how status works for the default connection, anonymous or named
#
# Slave_running and Slave_heartbeat_period should be local for a connection
#
set default_master_connection = '';
show status like 'Slave_running';
Variable_name	Value
Slave_running	ON
show status like 'Slave_heartbeat_period';
Variable_name	Value
Slave_heartbeat_period	35.000
stop slave io_thread;
include/wait_for_slave_io_to_stop.inc
show status like 'Slave_running';
Variable_name	Value
Slave_running	OFF
set default_master_connection = 'master1';
show status like 'Slave_running';
Variable_name	Value
Slave_running	ON
show status like 'Slave_heartbeat_period';
Variable_name	Value
Slave_heartbeat_period	25.000
#
# Slave_received_heartbeats should also be local
#
set default_master_connection = '';
stop slave sql_thread;
include/wait_for_slave_sql_to_stop.inc
change master to master_heartbeat_period=1;
show status like 'Slave_received_heartbeats';
Variable_name	Value
Slave_received_heartbeats	0
start slave;
include/wait_for_slave_to_start.inc
show status like 'Slave_received_heartbeats';
Variable_name	Value
Slave_received_heartbeats	2
stop slave;
include/wait_for_slave_to_stop.inc
set default_master_connection = 'master1';
show status like 'Slave_received_heartbeats';
Variable_name	Value
Slave_received_heartbeats	0
stop slave;
include/wait_for_slave_to_stop.inc
change master to master_heartbeat_period=2;
start slave;
include/wait_for_slave_to_start.inc
show status like 'Slave_received_heartbeats';
Variable_name	Value
Slave_received_heartbeats	1
#
# Slave_open_temp_tables should be global
#
set default_master_connection = '';
start slave;
include/wait_for_slave_to_start.inc
set binlog_format = statement;
create temporary table tmp1 (i int) engine=MyISAM;
show status like 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	1
set default_master_connection = 'master1';
show status like 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	1
set binlog_format = statement;
create temporary table tmp1 (i int) engine=MyISAM;
show status like 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	2
set default_master_connection = '';
show status like 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	2
include/reset_master_slave.inc
include/reset_master_slave.inc
include/reset_master_slave.inc