summaryrefslogtreecommitdiff
path: root/mysql-test/extra/rpl_tests/rpl_show_relaylog_events.inc
blob: 50036e564a79b6246e8ead48344b3e098b690ce8 (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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
-- connection master

CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2);
INSERT INTO t1 VALUES (3);
INSERT INTO t1 VALUES (4);
INSERT INTO t1 VALUES (5);
INSERT INTO t1 VALUES (6);

-- echo [MASTER] ********* SOW BINLOG EVENTS IN ...  *********
let $binary_log_file= master-bin.000001;
-- source include/show_binlog_events.inc

-- echo [MASTER] ********* SOW BINLOG EVENTS         *********
let $binary_log_file= ;
-- source include/show_binlog_events.inc

-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT rows  *********
let $binary_log_file= ;
let $binary_log_limit_row= 3;
-- source include/show_binlog_events.inc

-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT offset,rows  *********
let $binary_log_file= ;
let $binary_log_limit_row= 3;
let $binary_log_limit_offset= 1;
-- source include/show_binlog_events.inc

# clear show_binlog_event/show_relaylog_events parameters
let $binary_log_file= ;
let $binary_log_limit_row= ;
let $binary_log_limit_offset= ;

-- sync_slave_with_master

-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ...   *********
let $binary_log_file= slave-bin.000001;
-- source include/show_binlog_events.inc

-- echo [SLAVE] ********* SOW BINLOG EVENTS          *********
let $binary_log_file= ;
-- source include/show_binlog_events.inc

-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT rows  *********
let $binary_log_file= ;
let $binary_log_limit_row= 3;
-- source include/show_binlog_events.inc

-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT offset,rows  *********
let $binary_log_file= ;
let $binary_log_limit_row= 3;
let $binary_log_limit_offset= 1;
-- source include/show_binlog_events.inc

# clear show_binlog_event/show_relaylog_events parameters
let $binary_log_file= ;
let $binary_log_limit_row= ;
let $binary_log_limit_offset= ;

-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
let $binary_log_file= slave-relay-bin.000003;
-- source include/show_relaylog_events.inc

-- echo [SLAVE] ********* SOW RELAYLOG EVENTS        *********
let $binary_log_file= ;
-- source include/show_relaylog_events.inc

-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT rows  *********
let $binary_log_file= slave-relay-bin.000003;
let $binary_log_limit_row= 3;
let $binary_log_limit_offset= ;
-- source include/show_relaylog_events.inc

-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT offset,rows  *********
let $binary_log_file= slave-relay-bin.000003;
let $binary_log_limit_offset= 1;
let $binary_log_limit_row= 3;
-- source include/show_relaylog_events.inc

FLUSH LOGS;

-- connection master
FLUSH LOGS;
DROP TABLE t1;

# clear show_binlog_event/show_relaylog_events parameters
let $binary_log_file= ;
let $binary_log_limit_row= ;
let $binary_log_limit_offset= ;

-- echo [MASTER] ********* SOW BINLOG EVENTS IN ...  *********
let $binary_log_file= master-bin.000002;
-- source include/show_binlog_events.inc

-- echo [MASTER] ********* SOW BINLOG EVENTS         *********
let $binary_log_file= ;
-- source include/show_binlog_events.inc

-- sync_slave_with_master

-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ...   *********
let $binary_log_file= slave-bin.000002;
-- source include/show_binlog_events.inc

-- echo [SLAVE] ********* SOW BINLOG EVENTS          *********
let $binary_log_file= ;
-- source include/show_binlog_events.inc

-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
let $binary_log_file= slave-relay-bin.000005;
-- source include/show_relaylog_events.inc

-- echo [SLAVE] ********* SOW RELAYLOG EVENTS        *********
let $binary_log_file= ;
-- source include/show_relaylog_events.inc

# clear show_binlog_event/show_relaylog_events parameters
let $binary_log_name= ;
let $binary_log_limit_row= ;
let $binary_log_limit_offset= ;