mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
a41883facf
Fixed wrong number of warnings/duplicates for machines with high-byte-first client/mysql.cc: Remove not used variables client/mysqltest.c: Remove double ; myisam/ft_nlq_search.c: Fix valgrind error (not fatal) myisam/rt_test.c: Portability fix mysql-test/r/rpl_trunc_binlog.result: Portability fix mysql-test/t/rpl_trunc_binlog.test: Portability fix (Column 23 was different on openbsd) sql/sql_insert.cc: Fixed wrong number of warnings/duplicates for machines with high-byte-first strings/ctype-big5.c: Portability fix strings/ctype-gbk.c: Portability fix strings/ctype-mb.c: Portability fix strings/ctype-uca.c: Portability fix tests/client_test.c: Portability fixes
25 lines
918 B
Text
25 lines
918 B
Text
# We are testing if a binlog which contains BEGIN but not COMMIT (the
|
|
# master did while writing the transaction to the binlog) triggers an
|
|
# error on slave. So we use such a truncated binlog and simulate that
|
|
# the master restarted after this.
|
|
|
|
source include/master-slave.inc;
|
|
|
|
connection slave;
|
|
# If we are not supporting transactions in the slave, the unfinished transaction
|
|
# won't cause any error, so we need to skip the test. In the 4.0 testsuite, the
|
|
# slave always runs without InnoDB, so we check for BDB.
|
|
source include/have_bdb.inc;
|
|
stop slave;
|
|
connection master;
|
|
flush logs;
|
|
system mv -f var/log/master-bin.000001 var/log/master-bin.000002;
|
|
system cp std_data/trunc_binlog.000001 var/log/master-bin.000001;
|
|
connection slave;
|
|
reset slave;
|
|
start slave;
|
|
# can't sync_with_master so we must sleep
|
|
sleep 3;
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
show slave status;
|