mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
572560f38c
This allows us to avoid calculating variables (including those involving mutex) that doesn't match the given wildcard in SHOW STATUS LIKE '...' Removed all references to active_mi that could cause problems for multi-source replication. Added START|STOP ALL SLAVES Added SHOW ALL SLAVES STATUS include/mysql/plugin.h: Added SHOW_SIMPLE_FUNC include/mysql/plugin_audit.h.pp: Updated .pp file include/mysql/plugin_auth.h.pp: Updated .pp file include/mysql/plugin_ftparser.h.pp: Updated .pp file mysql-test/suite/multi_source/info_logs.result: New columns in SHOW ALL SLAVES STATUS mysql-test/suite/multi_source/info_logs.test: Test new syntax mysql-test/suite/multi_source/simple.result: New columns in SHOW ALL SLAVES STATUS mysql-test/suite/multi_source/simple.test: test new syntax mysql-test/suite/multi_source/syntax.result: Updated result mysql-test/suite/multi_source/syntax.test: Test new syntax mysql-test/suite/rpl/r/rpl_skip_replication.result: Updated result plugin/semisync/semisync_master_plugin.cc: SHOW_FUNC -> SHOW_SIMPLE_FUNC sql/item_create.cc: Simplify code sql/lex.h: Added SLAVES keyword sql/log.cc: Constant -> define sql/log_event.cc: Added comment sql/mysqld.cc: SHOW_FUNC -> SHOW_SIMPLE_FUNC Made slave_retried_trans, slave_received_heartbeats and heartbeat_period multi-source safe Clear variable denied_connections and slave_retried_transactions on startup sql/mysqld.h: Added slave_retried_transactions sql/rpl_mi.cc: create_signed_file_name -> create_logfile_name_with_suffix Added start_all_slaves() and stop_all_slaves() sql/rpl_mi.h: Added prototypes sql/rpl_rli.cc: create_signed_file_name -> create_logfile_name_with_suffix added executed_entries sql/rpl_rli.h: Added executed_entries sql/share/errmsg-utf8.txt: More and better error messages sql/slave.cc: Added more fields to SHOW ALL SLAVES STATUS Added slave_retried_transactions Changed constants -> defines sql/sql_class.h: Added comment sql/sql_insert.cc: active_mi.rli -> thd->rli_slave sql/sql_lex.h: Added SQLCOM_SLAVE_ALL_START & SQLCOM_SLAVE_ALL_STOP sql/sql_load.cc: active_mi.rli -> thd->rli_slave sql/sql_parse.cc: Added START|STOP ALL SLAVES sql/sql_prepare.cc: Added SQLCOM_SLAVE_ALL_START & SQLCOM_SLAVE_ALL_STOP sql/sql_reload.cc: Made REFRESH RELAY LOG multi-source safe sql/sql_repl.cc: create_signed_file_name -> create_logfile_name_with_suffix Don't send my_ok() from start_slave() or stop_slave() so that we can call it for all master connections sql/sql_show.cc: Compare wild cards early for all variables sql/sql_yacc.yy: Added START|STOP ALL SLAVES Added SHOW ALL SLAVES STATUS sql/sys_vars.cc: Made replicate_events_marked_for_skip,slave_net_timeout and rpl_filter multi-source safe. sql/sys_vars.h: Simplify Sys_var_rpl_filter
50 lines
2.1 KiB
Text
50 lines
2.1 KiB
Text
include/master-slave.inc
|
|
[connection master]
|
|
# Test if support 'flush error logs' statement.
|
|
flush error logs;
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush error logs' statement.
|
|
# Make sure relay logs was not be flushed
|
|
# after execute 'flush error logs' statement.
|
|
# Test if support 'flush relay logs' statement.
|
|
flush relay logs;
|
|
# Check the 'slave-relay-bin.000003' file is not created
|
|
# after executed 'flush relay logs' statement.
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush relay logs' statement.
|
|
# Test if support 'flush slow logs' statement.
|
|
flush slow logs;
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush slow logs' statement.
|
|
# Test if support 'flush general logs' statement.
|
|
flush general logs;
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush general logs' statement.
|
|
# Test if support 'flush engine logs' statement.
|
|
flush engine logs;
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush engine logs' statement.
|
|
# Make sure the 'master-bin.000002' file does not
|
|
# exist before execute 'flush binary logs' statement.
|
|
# Test if support 'flush binary logs' statement.
|
|
flush binary logs;
|
|
# Check the 'master-bin.000002' file is created
|
|
# after executed 'flush binary logs' statement.
|
|
# Make sure the 'slave-relay-bin.000005' file does not exist
|
|
# exist before execute 'flush error logs, relay logs' statement.
|
|
# Test if support to combine all kinds of logs into one statement.
|
|
flush error logs, relay logs;
|
|
# Make sure binary logs was not be flushed
|
|
# after execute 'flush error logs, relay logs' statement.
|
|
# Check the 'slave-relay-bin.000004' file is created after
|
|
# execute 'flush error logs, relay logs' statement.
|
|
# Make sure the 'slave-relay-bin.000005' and 'slave-relay-bin.000006'
|
|
# files do not exist before execute 'flush error logs, relay logs'
|
|
# statement.
|
|
# Test if 'flush logs' statement works fine and flush all the logs.
|
|
flush logs;
|
|
# Check 'master-bin.000003' is created
|
|
# after execute 'flush logs' statement.
|
|
# Check the 'slave-relay-bin.000005' and 'slave-relay-bin.000006'
|
|
# files are created after execute 'flush logs' statement.
|
|
include/rpl_end.inc
|