mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
mysql-5.1.73 merge
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
*** Set up circular replication on four servers ***
|
||||
include/rpl_init.inc [topology=1->2->3->4->1]
|
||||
|
||||
[connection server_4]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 4;
|
||||
[connection server_3]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 3;
|
||||
[connection server_2]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 2;
|
||||
[connection server_1]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 1;
|
||||
*** Preparing data ***
|
||||
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b VARCHAR(100), c INT NOT NULL, PRIMARY KEY(a)) ENGINE=MyISAM;
|
||||
CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT, b VARCHAR(100), c INT NOT NULL, PRIMARY KEY(a)) ENGINE=InnoDB;
|
||||
|
15
mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result
Normal file
15
mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result
Normal file
@@ -0,0 +1,15 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
CREATE TABLE t1(c1 INT);
|
||||
INSERT INTO t1 VALUES(1);
|
||||
[connection master]
|
||||
SET GLOBAL debug='+d,dump_fake_io_error';
|
||||
INSERT INTO t1 VALUES(2);
|
||||
INSERT INTO t1 VALUES(3);
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
[connection master]
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
@@ -32,5 +32,5 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
COUNT(*)
|
||||
2
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
include/rpl_end.inc
|
||||
|
@@ -3,7 +3,7 @@ include/master-slave.inc
|
||||
create table if not exists t1 (n int);
|
||||
drop table t1;
|
||||
call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary");
|
||||
call mtr.add_suppression ("Error in Log_event::read_log_event");
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
|
14
mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result
Normal file
14
mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result
Normal file
@@ -0,0 +1,14 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
CREATE TABLE t (i INT);
|
||||
SET GLOBAL DEBUG= "d,wait_after_binlog_EOF";
|
||||
INSERT INTO t VALUES (1);
|
||||
INSERT INTO t VALUES (2);
|
||||
FLUSH LOGS;
|
||||
SET DEBUG_SYNC= 'now SIGNAL signal.rotate_finished';
|
||||
include/diff_tables.inc [master:t,slave:t]
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
DROP TABLE t;
|
||||
include/rpl_end.inc
|
@@ -27,12 +27,6 @@ n
|
||||
3
|
||||
4
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
SELECT * FROM t2;
|
||||
n
|
||||
1
|
||||
2
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
START SLAVE;
|
||||
include/wait_for_slave_to_start.inc
|
||||
include/stop_slave.inc
|
||||
@@ -54,6 +48,18 @@ START SLAVE;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
Warnings:
|
||||
Note 1254 Slave is already running
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
include/start_slave.inc
|
||||
Warnings:
|
||||
Note 1254 Slave is already running
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
include/stop_slave_sql.inc
|
||||
INSERT INTO t1 VALUES (2);
|
||||
INSERT INTO t1 VALUES (3);
|
||||
include/sync_slave_io_with_master.inc
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
include/assert.inc [table t1 should have two rows.]
|
||||
include/start_slave.inc
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@@ -94,17 +94,4 @@ one
|
||||
1
|
||||
drop table t1;
|
||||
start slave;
|
||||
include/rpl_reset.inc
|
||||
drop table if exists t1;
|
||||
stop slave;
|
||||
flush logs;
|
||||
flush logs;
|
||||
reset slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=294 /* to stop right before DROP */;
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
show tables /* t1 must exist */;
|
||||
Tables_in_test
|
||||
t1
|
||||
drop table t1;
|
||||
stop slave;
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user