41 lines
2.0 KiB
Plaintext
41 lines
2.0 KiB
Plaintext
|
|
# Clean all configuration changes after running the test to
|
|
# make sure the test is repeatable.
|
|
--source include/force_restart.inc
|
|
|
|
call mtr.add_suppression("You need to use --log-bin to make --binlog-format work.");
|
|
call mtr.add_suppression("You need to use --log-bin to make --log-slave-updates work.");
|
|
call mtr.add_suppression("slave_preserve_commit_order is not supported unless both log_bin and log_slave_updates are enabled.");
|
|
|
|
SELECT @@GLOBAL.log_bin;
|
|
|
|
--echo #
|
|
--echo # Verify that the log-slave-updates warning is printed when starting
|
|
--echo # the server and log-slave-updates is enabled as before, if both
|
|
--echo # --skip-log-bin and --log-slave-updates options are set explicitly
|
|
--echo # on command line or configuration file.
|
|
--echo #
|
|
--let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.err
|
|
--let $assert_only_after= CURRENT_TEST: main.no_binlog_related_options
|
|
--let $assert_count= 1
|
|
--let $assert_select= You need to use --log-bin to make --log-slave-updates work.
|
|
--let $assert_text= Found the expected warning "You need to use --log-bin to make --log-slave-updates work." in server's error log.
|
|
--source include/assert_grep.inc
|
|
|
|
SELECT @@GLOBAL.log_slave_updates;
|
|
|
|
--echo #
|
|
--echo # Verify that the slave-preserve-commit-order error is printed when
|
|
--echo # starting the server and slave-preserve-commit-order is enabled as
|
|
--echo # before, if both --skip-log-bin and --slave-preserve-commit-order
|
|
--echo # options are set explicitly on command line or configuration file.
|
|
--echo #
|
|
--let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.err
|
|
--let $assert_only_after= CURRENT_TEST: main.no_binlog_related_options
|
|
--let $assert_count= 1
|
|
--let $assert_select= slave_preserve_commit_order is not supported unless both log_bin and log_slave_updates are enabled.
|
|
--let $assert_text= Found the expected warning "slave_preserve_commit_order is not supported unless both log_bin and log_slave_updates are enabled." in server's error log.
|
|
--source include/assert_grep.inc
|
|
|
|
SELECT @@GLOBAL.slave_preserve_commit_order;
|