Commit 27c09524 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV#5790 : SHOW GLOBAL STATUS LIKE does not show

the correct list of variables when using "_"

Fixed the type for offending "wsrep", wrongly
set to SHOW_SIMPLE_FUNC.

Added a test case.
parent 87910f7d
#
# MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
# variables when using "_"
#
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
SHOW VARIABLES LIKE 'wsrep%';
Variable_name Value
wsrep_osu_method #
wsrep_auto_increment_control #
wsrep_causal_reads #
wsrep_certify_nonpk #
wsrep_cluster_address #
wsrep_cluster_name #
wsrep_convert_lock_to_trx #
wsrep_data_home_dir #
wsrep_dbug_option #
wsrep_debug #
wsrep_desync #
wsrep_drupal_282555_workaround #
wsrep_forced_binlog_format #
wsrep_load_data_splitting #
wsrep_log_conflicts #
wsrep_max_ws_rows #
wsrep_max_ws_size #
wsrep_mysql_replication_bundle #
wsrep_node_address #
wsrep_node_incoming_address #
wsrep_node_name #
wsrep_notify_cmd #
wsrep_on #
wsrep_provider #
wsrep_provider_options #
wsrep_recover #
wsrep_replicate_myisam #
wsrep_retry_autocommit #
wsrep_slave_threads #
wsrep_sst_auth #
wsrep_sst_donor #
wsrep_sst_donor_rejects_queries #
wsrep_sst_method #
wsrep_sst_receive_address #
wsrep_start_position #
SHOW VARIABLES LIKE 'wsrep_%';
Variable_name Value
wsrep_osu_method #
wsrep_auto_increment_control #
wsrep_causal_reads #
wsrep_certify_nonpk #
wsrep_cluster_address #
wsrep_cluster_name #
wsrep_convert_lock_to_trx #
wsrep_data_home_dir #
wsrep_dbug_option #
wsrep_debug #
wsrep_desync #
wsrep_drupal_282555_workaround #
wsrep_forced_binlog_format #
wsrep_load_data_splitting #
wsrep_log_conflicts #
wsrep_max_ws_rows #
wsrep_max_ws_size #
wsrep_mysql_replication_bundle #
wsrep_node_address #
wsrep_node_incoming_address #
wsrep_node_name #
wsrep_notify_cmd #
wsrep_on #
wsrep_provider #
wsrep_provider_options #
wsrep_recover #
wsrep_replicate_myisam #
wsrep_retry_autocommit #
wsrep_slave_threads #
wsrep_sst_auth #
wsrep_sst_donor #
wsrep_sst_donor_rejects_queries #
wsrep_sst_method #
wsrep_sst_receive_address #
wsrep_start_position #
# Should show nothing.
SHOW VARIABLES LIKE 'x';
Variable_name Value
# End of test.
--binlog-format=row --wsrep-provider=/usr/lib/galera/libgalera_smm.so --wsrep-cluster-address=gcomm://
--source include/have_wsrep.inc
--echo #
--echo # MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
--echo # variables when using "_"
--echo #
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
--replace_column 2 #
SHOW VARIABLES LIKE 'wsrep%';
--echo
--replace_column 2 #
SHOW VARIABLES LIKE 'wsrep_%';
--echo # Should show nothing.
SHOW VARIABLES LIKE 'x';
--echo # End of test.
......@@ -8691,7 +8691,7 @@ SHOW_VAR status_vars[]= {
{"wsrep_provider_name", (char*) &wsrep_provider_name, SHOW_CHAR_PTR},
{"wsrep_provider_version", (char*) &wsrep_provider_version, SHOW_CHAR_PTR},
{"wsrep_provider_vendor", (char*) &wsrep_provider_vendor, SHOW_CHAR_PTR},
{"wsrep", (char*) &wsrep_show_status, SHOW_SIMPLE_FUNC},
{"wsrep", (char*) &wsrep_show_status, SHOW_FUNC},
#endif
{NullS, NullS, SHOW_LONG}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment