mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
df3b1a54f4
* A more dynamic binlog format which allows small changes (1064) * Log session variables in Query_log_event (1063) It contains a few bugfixes (which I made when running the testsuite). I carefully updated the results of the testsuite (i.e. I checked for every one, if the difference between .reject and .result could be explained). Apparently mysql-test-run --manager is broken in 4.1 and 5.0 currently, so I could neither run the few tests which require --manager, nor check that they pass nor modify their .result. But for builds, we don't run with --manager. Apart from --manager, the full testsuite passes, with Valgrind too (no errors). I'm going to push in the next minutes. Remains: update the manual. Note: by chance I saw that (in 4.1, in 5.0) rpl_get_lock fails when run alone; this is normal at it makes assumptions on thread ids. I will fix this one day in 4.1.
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;
|