mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merged BUG#49978 from 5.1-bugteam to 5.5-bugteam.
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
drop table if exists t1, t2, t3, t4;
|
||||
drop table if exists t1, t2, t3, t4;
|
||||
start slave;
|
||||
Got one of the listed errors
|
||||
start slave;
|
||||
@ -10,13 +8,14 @@ reset slave;
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
|
||||
reset master;
|
||||
start slave;
|
||||
include/wait_for_slave_to_start.inc
|
||||
create temporary table temp_table (a char(80) not null);
|
||||
insert into temp_table values ("testing temporary tables");
|
||||
create table t1 (s text);
|
||||
insert into t1 values('Could not break slave'),('Tried hard');
|
||||
Master_Log_File master-bin.000001
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Checking that both slave threads are running.
|
||||
Master_Log_File = 'master-bin.000001'
|
||||
Relay_Master_Log_File = 'master-bin.000001'
|
||||
include/check_slave_is_running.inc
|
||||
select * from t1;
|
||||
s
|
||||
Could not break slave
|
||||
@ -38,8 +37,7 @@ drop table temp_table, t3;
|
||||
insert into t2 values(1234);
|
||||
set insert_id=1234;
|
||||
insert into t2 values(NULL);
|
||||
set global sql_slave_skip_counter=1;
|
||||
start slave;
|
||||
include/wait_for_slave_sql_error_and_skip.inc [errno=1062]
|
||||
purge master logs to 'master-bin.000002';
|
||||
show master logs;
|
||||
Log_name master-bin.000002
|
||||
@ -57,9 +55,9 @@ show binary logs;
|
||||
Log_name File_size
|
||||
master-bin.000003 #
|
||||
insert into t2 values (65);
|
||||
Master_Log_File master-bin.000003
|
||||
Relay_Master_Log_File master-bin.000003
|
||||
Checking that both slave threads are running.
|
||||
Master_Log_File = 'master-bin.000003'
|
||||
Relay_Master_Log_File = 'master-bin.000003'
|
||||
include/check_slave_is_running.inc
|
||||
select * from t2;
|
||||
m
|
||||
34
|
||||
@ -88,9 +86,9 @@ master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
select * from t4;
|
||||
a
|
||||
testing temporary tables part 2
|
||||
Master_Log_File master-bin.000008
|
||||
Relay_Master_Log_File master-bin.000008
|
||||
Checking that both slave threads are running.
|
||||
Master_Log_File = 'master-bin.000008'
|
||||
Relay_Master_Log_File = 'master-bin.000008'
|
||||
include/check_slave_is_running.inc
|
||||
lock tables t3 read;
|
||||
select count(*) from t3 where n >= 4;
|
||||
count(*)
|
||||
@ -105,3 +103,4 @@ show binlog events in '';
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
purge master logs before now();
|
||||
End of 5.0 tests
|
||||
include/stop_slave.inc
|
||||
|
Reference in New Issue
Block a user