| 1 |
source include/have_innodb.inc; |
| 2 |
source include/have_log_bin.inc; |
| 3 |
|
| 4 |
# |
| 5 |
# WL#2540 replication event checksum |
| 6 |
# |
| 7 |
# Objectives of the test are: |
| 8 |
# to demo binlog events with CRC32 checksum in them and |
| 9 |
# to prove show binlog events and mysqlbinlog are capable to handle |
| 10 |
# the checksum. |
| 11 |
# |
| 12 |
|
| 13 |
set @save_binlog_checksum = @@global.binlog_checksum; |
| 14 |
set @save_master_verify_checksum = @@global.master_verify_checksum; |
| 15 |
set @@global.binlog_checksum = CRC32; |
| 16 |
set @@global.master_verify_checksum = 1; |
| 17 |
let $MYSQLD_DATADIR= `select @@datadir`; |
| 18 |
|
| 19 |
reset master; |
| 20 |
--echo must be master-bin.000001 |
| 21 |
--source include/show_binary_logs.inc |
| 22 |
|
| 23 |
create table t1 (a int); |
| 24 |
flush logs; |
| 25 |
drop table t1; |
| 26 |
|
| 27 |
--source include/show_binlog_events.inc |
| 28 |
--exec $MYSQL_BINLOG -c $MYSQLD_DATADIR/master-bin.000001 | $MYSQL |
| 29 |
show tables; |
| 30 |
|
| 31 |
# clean-up |
| 32 |
|
| 33 |
drop table t1; |
| 34 |
set @@global.binlog_checksum = @save_binlog_checksum; |
| 35 |
set @@global.master_verify_checksum = @save_master_verify_checksum; |
| 36 |
|
| 37 |
--echo End of the tests |