~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_stm_until.result

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
drop table t2;
18
18
==== Replicate one event at a time on slave ====
19
19
[on slave]
20
 
start slave until master_log_file='master-bin.000001', master_log_pos=323;
21
 
select * from t1;
22
 
n
23
 
1
24
 
2
25
 
3
26
 
4
27
 
SHOW SLAVE STATUS;
28
 
Slave_IO_State  #
29
 
Master_Host     127.0.0.1
30
 
Master_User     root
31
 
Master_Port     MASTER_PORT
32
 
Connect_Retry   1
33
 
Master_Log_File master-bin.000001
34
 
Read_Master_Log_Pos     #
35
 
Relay_Log_File  #
36
 
Relay_Log_Pos   #
37
 
Relay_Master_Log_File   master-bin.000001
38
 
Slave_IO_Running        Yes
39
 
Slave_SQL_Running       No
40
 
Replicate_Do_DB 
41
 
Replicate_Ignore_DB     
42
 
Replicate_Do_Table      
43
 
Replicate_Ignore_Table  #
44
 
Replicate_Wild_Do_Table 
45
 
Replicate_Wild_Ignore_Table     
46
 
Last_Errno      0
47
 
Last_Error      
48
 
Skip_Counter    0
49
 
Exec_Master_Log_Pos     #
50
 
Relay_Log_Space #
51
 
Until_Condition Master
52
 
Until_Log_File  master-bin.000001
53
 
Until_Log_Pos   323
54
 
Master_SSL_Allowed      No
55
 
Master_SSL_CA_File      
56
 
Master_SSL_CA_Path      
57
 
Master_SSL_Cert 
58
 
Master_SSL_Cipher       
59
 
Master_SSL_Key  
60
 
Seconds_Behind_Master   #
61
 
Master_SSL_Verify_Server_Cert   No
62
 
Last_IO_Errno   #
63
 
Last_IO_Error   #
64
 
Last_SQL_Errno  0
65
 
Last_SQL_Error  
66
 
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
67
 
select * from t1;
68
 
n
69
 
1
70
 
2
71
 
3
72
 
4
73
 
SHOW SLAVE STATUS;
74
 
Slave_IO_State  #
75
 
Master_Host     127.0.0.1
76
 
Master_User     root
77
 
Master_Port     MASTER_PORT
78
 
Connect_Retry   1
79
 
Master_Log_File master-bin.000001
80
 
Read_Master_Log_Pos     #
81
 
Relay_Log_File  #
82
 
Relay_Log_Pos   #
83
 
Relay_Master_Log_File   master-bin.000001
84
 
Slave_IO_Running        Yes
85
 
Slave_SQL_Running       No
86
 
Replicate_Do_DB 
87
 
Replicate_Ignore_DB     
88
 
Replicate_Do_Table      
89
 
Replicate_Ignore_Table  #
90
 
Replicate_Wild_Do_Table 
91
 
Replicate_Wild_Ignore_Table     
92
 
Last_Errno      0
93
 
Last_Error      
94
 
Skip_Counter    0
95
 
Exec_Master_Log_Pos     #
96
 
Relay_Log_Space #
97
 
Until_Condition Master
98
 
Until_Log_File  master-no-such-bin.000001
99
 
Until_Log_Pos   291
100
 
Master_SSL_Allowed      No
101
 
Master_SSL_CA_File      
102
 
Master_SSL_CA_Path      
103
 
Master_SSL_Cert 
104
 
Master_SSL_Cipher       
105
 
Master_SSL_Key  
106
 
Seconds_Behind_Master   #
107
 
Master_SSL_Verify_Server_Cert   No
108
 
Last_IO_Errno   #
109
 
Last_IO_Error   #
110
 
Last_SQL_Errno  0
111
 
Last_SQL_Error  
112
 
start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=746;
 
20
start slave until master_log_file='MASTER_LOG_FILE', master_log_pos=MASTER_LOG_POS;
 
21
select * from t1;
 
22
n
 
23
1
 
24
2
 
25
3
 
26
4
 
27
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=MASTER_LOG_POS;
 
28
select * from t1;
 
29
n
 
30
1
 
31
2
 
32
3
 
33
4
 
34
start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=RELAY_LOG_POS;
113
35
select * from t2;
114
36
n
115
37
1
116
38
2
117
 
SHOW SLAVE STATUS;
118
 
Slave_IO_State  #
119
 
Master_Host     127.0.0.1
120
 
Master_User     root
121
 
Master_Port     MASTER_PORT
122
 
Connect_Retry   1
123
 
Master_Log_File master-bin.000001
124
 
Read_Master_Log_Pos     #
125
 
Relay_Log_File  #
126
 
Relay_Log_Pos   #
127
 
Relay_Master_Log_File   master-bin.000001
128
 
Slave_IO_Running        Yes
129
 
Slave_SQL_Running       No
130
 
Replicate_Do_DB 
131
 
Replicate_Ignore_DB     
132
 
Replicate_Do_Table      
133
 
Replicate_Ignore_Table  #
134
 
Replicate_Wild_Do_Table 
135
 
Replicate_Wild_Ignore_Table     
136
 
Last_Errno      0
137
 
Last_Error      
138
 
Skip_Counter    0
139
 
Exec_Master_Log_Pos     #
140
 
Relay_Log_Space #
141
 
Until_Condition Relay
142
 
Until_Log_File  slave-relay-bin.000004
143
 
Until_Log_Pos   746
144
 
Master_SSL_Allowed      No
145
 
Master_SSL_CA_File      
146
 
Master_SSL_CA_Path      
147
 
Master_SSL_Cert 
148
 
Master_SSL_Cipher       
149
 
Master_SSL_Key  
150
 
Seconds_Behind_Master   #
151
 
Master_SSL_Verify_Server_Cert   No
152
 
Last_IO_Errno   #
153
 
Last_IO_Error   #
154
 
Last_SQL_Errno  0
155
 
Last_SQL_Error  
156
39
start slave;
157
40
[on master]
158
41
[on slave]
159
42
include/stop_slave.inc
160
 
start slave until master_log_file='master-bin.000001', master_log_pos=776;
161
 
SHOW SLAVE STATUS;
162
 
Slave_IO_State  #
163
 
Master_Host     127.0.0.1
164
 
Master_User     root
165
 
Master_Port     MASTER_PORT
166
 
Connect_Retry   1
167
 
Master_Log_File master-bin.000001
168
 
Read_Master_Log_Pos     #
169
 
Relay_Log_File  #
170
 
Relay_Log_Pos   #
171
 
Relay_Master_Log_File   master-bin.000001
172
 
Slave_IO_Running        Yes
173
 
Slave_SQL_Running       No
174
 
Replicate_Do_DB 
175
 
Replicate_Ignore_DB     
176
 
Replicate_Do_Table      
177
 
Replicate_Ignore_Table  #
178
 
Replicate_Wild_Do_Table 
179
 
Replicate_Wild_Ignore_Table     
180
 
Last_Errno      0
181
 
Last_Error      
182
 
Skip_Counter    0
183
 
Exec_Master_Log_Pos     #
184
 
Relay_Log_Space #
185
 
Until_Condition Master
186
 
Until_Log_File  master-bin.000001
187
 
Until_Log_Pos   776
188
 
Master_SSL_Allowed      No
189
 
Master_SSL_CA_File      
190
 
Master_SSL_CA_Path      
191
 
Master_SSL_Cert 
192
 
Master_SSL_Cipher       
193
 
Master_SSL_Key  
194
 
Seconds_Behind_Master   #
195
 
Master_SSL_Verify_Server_Cert   No
196
 
Last_IO_Errno   #
197
 
Last_IO_Error   #
198
 
Last_SQL_Errno  0
199
 
Last_SQL_Error  
 
43
start slave until master_log_file='MASTER_LOG_FILE', master_log_pos=MASTER_LOG_POS;
200
44
==== Test various error conditions ====
201
 
start slave until master_log_file='master-bin', master_log_pos=561;
 
45
start slave until master_log_file='master-bin', master_log_pos=MASTER_LOG_POS;
202
46
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
203
 
start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;
 
47
start slave until master_log_file='master-bin.000001', master_log_pos=MASTER_LOG_POS, relay_log_pos=RELAY_LOG_POS;
204
48
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
205
49
start slave until master_log_file='master-bin.000001';
206
50
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
207
51
start slave until relay_log_file='slave-relay-bin.000002';
208
52
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
209
 
start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
 
53
start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=MASTER_LOG_POS;
210
54
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
211
55
start slave sql_thread;
212
 
start slave until master_log_file='master-bin.000001', master_log_pos=776;
 
56
start slave until master_log_file='master-bin.000001', master_log_pos=MASTER_LOG_POS;
213
57
Warnings:
214
58
Note    1254    Slave is already running
215
59
include/stop_slave.inc
230
74
select count(*) as two from t1;
231
75
two
232
76
2
233
 
start slave until master_log_file='master-bin.000001', master_log_pos= UNTIL_POS;;
 
77
start slave until master_log_file='MASTER_LOG_FILE', master_log_pos= UNTIL_POS;;
234
78
slave stopped at the prescribed position
235
79
select 0 as zero;
236
80
zero