# 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.sourceinclude/master-slave.inc;connectionslave;
# 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.sourceinclude/have_bdb.inc;
stopslave;connectionmaster;flushlogs;systemmv-fvar/log/master-bin.001var/log/master-bin.002;systemcpstd_data/trunc_binlog.001var/log/master-bin.001;connectionslave;resetslave;startslave;# can't sync_with_master so we must sleepsleep3;--replace_result$MASTER_MYPORTMASTER_PORTshowslavestatus;