mariadb/sql
Julius Goryavsky f9f8e33f29 MDEV-25669: SST scripts should check all server groups in config files
1) This commit implements reading all sections from configuration
files while looking for the current value of any server variable,
which were previously only read from the [mysqld.suffix] group and
from [mysqld], but not from other groups such as [mariadb.suffix],
[mariadb] or, for example, [server].

2) This commit also fixes misrecognition of some parameters when
parsing a command line containing a special marker for the end
of the list of options ("--") or when short option names (such
as "-s", "-a" and "-h arg") chained together (like a "-sah arg").
Such parameters can be passed to the SST script in the list of
arguments after "--mysqld-args" if the server is started with a
complex set of options - this was revealed during manual testing
of changes to read configuration files.

3) The server-side preparation code for the "--mysqld-args"
option list has also been simplified to make it easier to change
in the future (if needed), and has been improved to properly
handle the special backquote ("`") character in the argument
values.
2021-05-17 14:58:49 +02:00
..
share
add_errmsg
authors.h
backup.cc
backup.h
bounded_queue.h
client_settings.h
CMakeLists.txt
compat56.cc
compat56.h
contributors.h
create_options.cc
create_options.h
custom_conf.h
datadict.cc
datadict.h
debug_sync.cc
debug_sync.h
derived_handler.cc
derived_handler.h
derror.cc
derror.h
des_key_file.cc
des_key_file.h
discover.cc
discover.h
encryption.cc
event_data_objects.cc
event_data_objects.h
event_db_repository.cc
event_db_repository.h
event_parse_data.cc
event_parse_data.h
event_queue.cc
event_queue.h
event_scheduler.cc
event_scheduler.h
events.cc
events.h
field.cc
field.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
field_comp.cc
field_comp.h
field_conv.cc
filesort.cc
filesort.h
filesort_utils.cc
filesort_utils.h
gcalc_slicescan.cc
gcalc_slicescan.h
gcalc_tools.cc
gcalc_tools.h
gen_lex_hash.cc
gen_lex_token.cc
gen_win_tzname_data.ps1 Update timezone data on Windows 2021-04-22 15:51:55 +02:00
group_by_handler.cc
group_by_handler.h
gstream.cc
gstream.h
ha_partition.cc
ha_partition.h
ha_sequence.cc
ha_sequence.h
handle_connections_win.cc
handle_connections_win.h
handler.cc
handler.h MDEV-24758 heap-use-after-poison in innobase_add_instant_try/rec_copy 2021-04-26 18:17:50 +03:00
hash_filo.cc
hash_filo.h
hostname.cc
hostname.h
init.cc
init.h
innodb_priv.h
item.cc
item.h Merge 10.3 into 10.4 2021-04-25 10:20:57 +03:00
item_buff.cc
item_cmpfunc.cc
item_cmpfunc.h
item_create.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
item_create.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
item_func.cc
item_func.h
item_geofunc.cc
item_geofunc.h
item_inetfunc.cc
item_inetfunc.h
item_jsonfunc.cc
item_jsonfunc.h
item_row.cc
item_row.h
item_strfunc.cc
item_strfunc.h
item_subselect.cc
item_subselect.h
item_sum.cc
item_sum.h
item_timefunc.cc
item_timefunc.h
item_vers.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
item_vers.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
item_windowfunc.cc
item_windowfunc.h
item_xmlfunc.cc
item_xmlfunc.h
key.cc
key.h
keycaches.cc
keycaches.h
lex.h
lex_string.h
lex_symbol.h
lock.cc
lock.h
log.cc MDEV-25553 : Avoid unnecessary rollbacks with SR 2021-04-28 12:15:30 +03:00
log.h
log_event.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
log_event.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
log_event_old.cc
log_event_old.h
log_slow.h
main.cc
mariadb.h
mdl.cc
mdl.h
mem_root_array.h
message.h
message.mc
message.rc
mf_iocache.cc
mf_iocache_encr.cc
MSG00001.bin
multi_range_read.cc
multi_range_read.h
my_apc.cc
my_apc.h
my_decimal.cc
my_decimal.h
my_json_writer.cc
my_json_writer.h
mysql_install_db.cc
mysql_upgrade_service.cc
mysqld.cc
mysqld.h
mysqld_suffix.h
net_serv.cc
nt_servc.cc
nt_servc.h
opt_index_cond_pushdown.cc
opt_range.cc
opt_range.h
opt_range_mrr.cc
opt_split.cc
opt_subselect.cc
opt_subselect.h
opt_sum.cc
opt_table_elimination.cc
opt_trace.cc
opt_trace.h
opt_trace_context.h
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc
partition_info.h
password.c
plistsort.c
procedure.cc
procedure.h
protocol.cc
protocol.h
proxy_protocol.cc
proxy_protocol.h
records.cc
records.h
repl_failsafe.cc
repl_failsafe.h
replication.h
rowid_filter.cc
rowid_filter.h
rpl_constants.h
rpl_filter.cc
rpl_filter.h
rpl_gtid.cc
rpl_gtid.h
rpl_injector.cc
rpl_injector.h
rpl_mi.cc
rpl_mi.h
rpl_parallel.cc
rpl_parallel.h
rpl_record.cc
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h
rpl_rli.cc
rpl_rli.h
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc
rpl_utility.h
scheduler.cc
scheduler.h
select_handler.cc
select_handler.h
semisync.cc
semisync.h
semisync_master.cc
semisync_master.h
semisync_master_ack_receiver.cc Merge 10.3 into 10.4 2021-04-27 08:53:50 +03:00
semisync_master_ack_receiver.h
semisync_slave.cc
semisync_slave.h
service_wsrep.cc
session_tracker.cc
session_tracker.h
set_var.cc
set_var.h
signal_handler.cc
slave.cc
slave.h
sp.cc
sp.h
sp_cache.cc
sp_cache.h
sp_head.cc
sp_head.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_acl.h
sql_acl_getsort.ic
sql_admin.cc
sql_admin.h
sql_alloc.h
sql_alter.cc MDEV-24758 heap-use-after-poison in innobase_add_instant_try/rec_copy 2021-04-26 18:17:50 +03:00
sql_alter.h MDEV-24758 heap-use-after-poison in innobase_add_instant_try/rec_copy 2021-04-26 18:17:50 +03:00
sql_analyse.cc
sql_analyse.h
sql_analyze_stmt.cc
sql_analyze_stmt.h
sql_array.h
sql_audit.cc
sql_audit.h
sql_base.cc Merge 10.3 into 10.4 2021-05-10 09:52:01 +03:00
sql_base.h
sql_basic_types.h
sql_binlog.cc
sql_binlog.h
sql_bitmap.h
sql_bootstrap.cc
sql_bootstrap.h
sql_builtin.cc.in
sql_cache.cc
sql_cache.h
sql_callback.h
sql_class.cc MDEV-23542 Server crashes in thd_clear_errors() 2021-05-05 23:06:12 +03:00
sql_class.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_client.cc
sql_cmd.h
sql_connect.cc
sql_connect.h
sql_const.h
sql_crypt.cc
sql_crypt.h
sql_cte.cc
sql_cte.h
sql_cursor.cc
sql_cursor.h
sql_db.cc
sql_db.h
sql_delete.cc Merge 10.3 into 10.4 2021-04-25 10:20:57 +03:00
sql_delete.h
sql_derived.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_derived.h
sql_digest.cc
sql_digest.h
sql_digest_stream.h
sql_do.cc
sql_do.h
sql_error.cc
sql_error.h
sql_explain.cc
sql_explain.h
sql_expression_cache.cc
sql_expression_cache.h
sql_get_diagnostics.cc
sql_get_diagnostics.h
sql_handler.cc
sql_handler.h
sql_help.cc
sql_help.h
sql_hset.h
sql_insert.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_insert.h
sql_join_cache.cc
sql_join_cache.h
sql_lex.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_lex.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_lifo_buffer.h
sql_list.cc
sql_list.h
sql_load.cc
sql_load.h
sql_locale.cc
sql_locale.h
sql_manager.cc
sql_manager.h
sql_mode.cc
sql_mode.h
sql_parse.cc
sql_parse.h
sql_partition.cc
sql_partition.h
sql_partition_admin.cc
sql_partition_admin.h
sql_plist.h
sql_plugin.cc
sql_plugin.h
sql_plugin_compat.h
sql_plugin_services.ic
sql_prepare.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_prepare.h
sql_priv.h
sql_profile.cc
sql_profile.h
sql_reload.cc
sql_reload.h
sql_rename.cc
sql_rename.h
sql_repl.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_repl.h
sql_schema.cc
sql_schema.h
sql_select.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_select.h Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_sequence.cc
sql_sequence.h
sql_servers.cc
sql_servers.h
sql_show.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_show.h
sql_signal.cc
sql_signal.h
sql_sort.h
sql_state.c
sql_statistics.cc
sql_statistics.h
sql_string.cc
sql_string.h
sql_table.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_table.h
sql_tablespace.cc
sql_tablespace.h
sql_test.cc
sql_test.h
sql_time.cc
sql_time.h
sql_trigger.cc
sql_trigger.h
sql_truncate.cc
sql_truncate.h
sql_tvc.cc
sql_tvc.h
sql_type.cc
sql_type.h
sql_type_int.h
sql_type_json.cc
sql_type_json.h
sql_type_real.h
sql_udf.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_udf.h
sql_union.cc
sql_union.h
sql_update.cc Merge branch bb-10.3-release into bb-10.4-release 2021-05-05 23:03:01 +03:00
sql_update.h
sql_view.cc
sql_view.h
sql_window.cc
sql_window.h
sql_yacc.yy Bug#29363867: LOST CONNECTION TO MYSQL SERVER DURING QUERY 2021-04-28 11:31:18 +02:00
sql_yacc_ora.yy
strfunc.cc
strfunc.h
structs.h
sys_vars.cc
sys_vars.ic
sys_vars_shared.h
table.cc
table.h
table_cache.cc
table_cache.h
temporary_tables.cc
thr_malloc.cc
thr_malloc.h
threadpool.h
threadpool_common.cc
threadpool_generic.cc
threadpool_win.cc
transaction.cc
transaction.h
tzfile.h
tztime.cc
tztime.h
udf_example.c
udf_example.def
uniques.cc
uniques.h
unireg.cc
unireg.h
upgrade_conf_file.cc
vers_string.h
vers_utils.h
win_tzname_data.h Update timezone data on Windows 2021-04-22 15:51:55 +02:00
winservice.c
winservice.h
wsrep_applier.cc
wsrep_applier.h
wsrep_binlog.cc
wsrep_binlog.h
wsrep_check_opts.cc
wsrep_client_service.cc
wsrep_client_service.h
wsrep_client_state.h
wsrep_condition_variable.h
wsrep_dummy.cc
wsrep_high_priority_service.cc
wsrep_high_priority_service.h
wsrep_mutex.h
wsrep_mysqld.cc MDEV-22227 Assertion `state_ == s_exec' failed in wsrep::client_state::start_transaction 2021-04-28 11:11:01 +03:00
wsrep_mysqld.h MDEV-25553 : Avoid unnecessary rollbacks with SR 2021-04-28 12:15:30 +03:00
wsrep_mysqld_c.h
wsrep_notify.cc
wsrep_plugin.cc
wsrep_priv.h
wsrep_schema.cc
wsrep_schema.h
wsrep_server_service.cc
wsrep_server_service.h
wsrep_server_state.cc
wsrep_server_state.h
wsrep_sst.cc MDEV-25669: SST scripts should check all server groups in config files 2021-05-17 14:58:49 +02:00
wsrep_sst.h
wsrep_storage_service.cc
wsrep_storage_service.h
wsrep_thd.cc
wsrep_thd.h
wsrep_trans_observer.h MDEV-25553 : Avoid unnecessary rollbacks with SR 2021-04-28 12:15:30 +03:00
wsrep_types.h
wsrep_utils.cc
wsrep_utils.h
wsrep_var.cc
wsrep_var.h
wsrep_xid.cc
wsrep_xid.h
xa.cc
xa.h