################################################################################
# Please, check ./include/rpl_start_stop_slave.test
################################################################################
--source include/have_binlog_format_statement.inc
--source include/have_innodb.inc
--source include/master-slave.inc

# make innodb updates run fast
--connection slave
SET @old_innodb_flush_log_at_trx_commit= @@global.innodb_flush_log_at_trx_commit;
SET @@global.innodb_flush_log_at_trx_commit= 0;
--connection master
SET @old_innodb_flush_log_at_trx_commit= @@global.innodb_flush_log_at_trx_commit;
SET @@global.innodb_flush_log_at_trx_commit= 0;

SET @@session.binlog_direct_non_transactional_updates= FALSE;
--source ./include/rpl_start_stop_slave.test

# clean up
--connection slave
SET @@global.innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
--connection master
SET @@global.innodb_flush_log_at_trx_commit= @old_innodb_flush_log_at_trx_commit;
--let $rpl_only_running_threads= 1
--source include/rpl_end.inc
