2012-09-11 07:22:57 +02:00
|
|
|
include/master-slave.inc
|
|
|
|
[connection master]
|
|
|
|
#
|
|
|
|
# Bug mdev-485: unexpected failure with replication of DROP/ALTER table
|
|
|
|
# when RBR is on
|
|
|
|
#
|
|
|
|
CREATE TABLE t1 ( a int, b int ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
DROP TABLE t1;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection slave;
|
|
|
|
connection master;
|
2012-09-11 07:22:57 +02:00
|
|
|
CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
DROP INDEX idx1 ON t1;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection slave;
|
|
|
|
connection master;
|
2012-09-11 07:22:57 +02:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
ALTER TABLE t1 DROP COLUMN b;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection slave;
|
|
|
|
connection master;
|
2012-09-11 07:22:57 +02:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
ALTER TABLE t1 RENAME to s;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection slave;
|
|
|
|
connection master;
|
2012-09-11 07:22:57 +02:00
|
|
|
DROP TABLE s;
|
|
|
|
CREATE TABLE t1 ( a int, b int, INDEX idx1(b) ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t1 VALUES (2,20), (1,20), (3,30);
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
ALTER TABLE t1 CHANGE COLUMN b c int ;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection slave;
|
|
|
|
connection master;
|
2012-09-11 07:22:57 +02:00
|
|
|
DROP TABLE t1;
|
|
|
|
include/rpl_end.inc
|