| 1 |
# This test is to make sure that slaves can read a binlog containining |
| 2 |
# table map ids stored in 4 bytes, even though we now store them in 6 |
| 3 |
# bytes. This is for backward-compatibility. |
| 4 |
# If the slave does not detect that the master stores the table map id |
| 5 |
# in 4 bytes, slave will read 6 bytes, and so will read the 2 bytes of |
| 6 |
# flags at the place where there actually is data, so the test should |
| 7 |
# fail. |
| 8 |
|
| 9 |
-- source include/have_binlog_format_row.inc |
| 10 |
-- source include/have_debug.inc |
| 11 |
-- source include/master-slave.inc |
| 12 |
|
| 13 |
connection master; |
| 14 |
--disable_warnings |
| 15 |
drop database if exists mysqltest1; |
| 16 |
create database mysqltest1; |
| 17 |
--enable_warnings |
| 18 |
use mysqltest1; |
| 19 |
CREATE TABLE t1 (a char(3)); |
| 20 |
CREATE TABLE t2 (a char(3)); |
| 21 |
insert into t1 values("ANN"); |
| 22 |
insert into t1 values("GUI"); |
| 23 |
insert into t2 values("LIL"); |
| 24 |
insert into t2 values("ABE"); |
| 25 |
insert into t2 values("ANG"); |
| 26 |
sync_slave_with_master; |
| 27 |
use mysqltest1; |
| 28 |
select * from t1 order by a; |
| 29 |
select * from t2 order by a; |
| 30 |
|
| 31 |
connection master; |
| 32 |
DROP DATABASE mysqltest1; |
| 33 |
sync_slave_with_master; |
| 34 |
--source include/rpl_end.inc |