mariadb/mysys
Vlad Lesin 9bdf35e90f MDEV-18215: mariabackup does not report unknown command line options
MDEV-21298: mariabackup doesn't read from the [mariadbd] and [mariadbd-X.Y]
server option groups from configuration files
MDEV-21301: mariabackup doesn't read [mariadb-backup] option group in
configuration file

All three issues require to change the same code, that is why their
fixes are joined in one commit.

The fix is in invoking load_defaults_or_exit() and handle_options() for
backup-specific groups separately from client-server groups to let the last
handle_options() call fail on unknown backup-specific options.

The order of options procesing is the following:
1) Load server groups and process server options, ignore unknown
options
2) Load client groups and process client options, ignore unknown
options
3) Load backup groups and process client-server options, exit on
unknown option
4) Process --mysqld-args command line options, ignore unknown options

New global flag my_handle_options_init_variables was added to have
ability to invoke handle_options() for the same allowed options set
several times without re-initialising previously set option values.

--password value destroying is moved from option processing callback to
mariabackup's handle_options() function to have ability to invoke server's
handle_options() several times for the same possible allowed options
set.

Galera invokes wsrep_sst_mariabackup.sh with mysqld command line
options to configure mariabackup as close to the server as possible.
It is not known what server options are supported by mariabackup when the
script is invoked. That is why new mariabackup option "--mysqld-args" is added,
all unknown options that follow this option will be silently ignored.

wsrep_sst_mariabackup.sh was also changed to:
- use "--mysqld-args" mariabackup option to pass mysqld options,
- remove deprecated innobackupex mode,
- remove unsupported mariabackup options:
    --encrypt
    --encrypt-key
    --rebuild-indexes
    --rebuild-threads
2020-06-14 13:23:07 +03:00
..
array.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
base64.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ChangeLog
charset-def.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
charset.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
checksum.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
CMakeLists.txt Merge commit '10.3' into 10.4 2020-03-11 13:27:10 +01:00
errors.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
file_logger.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
get_password.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
guess_malloc_library.c Fixed compiler warnings in guess_malloc_library 2018-01-15 16:44:44 +02:00
hash.c Merge 10.2 into 10.3 2020-04-15 09:56:03 +03:00
lf_alloc-pin.c Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
lf_dynarray.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_hash.c Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
list.c Merge 10.1 into 10.2 2020-05-13 11:12:31 +03:00
ma_dyncol.c Merge bb-10.2-ext into 10.3 2018-02-15 10:22:03 +02:00
mf_arr_appstr.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_cache.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mf_dirname.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_fn_ext.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_format.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_getdate.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_iocache.c MDEV-22556: Incorrect result for window function when using encrypt-tmp-files=ON 2020-05-17 15:26:18 +05:30
mf_iocache2.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mf_keycache.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mf_keycaches.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_loadpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_pack.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_path.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort2.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_radix.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_same.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_sort.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_soundex.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_tempdir.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_tempfile.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mf_unixpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_wcomp.c Update FSF Address 2019-05-11 21:29:06 +03:00
mulalloc.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_access.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_addr_resolve.c Merge branch '10.1' into 10.2 2020-03-06 15:42:45 +01:00
my_alarm.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_alloc.c Merge 10.3 into 10.4 2019-05-29 22:17:00 +03:00
my_atomic_writes.c Fixes for atomic writes on Windows. 2019-05-06 11:32:17 +00:00
my_basename.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_bit.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_bitmap.c Merge 10.3 into 10.4 2020-05-30 11:04:27 +03:00
my_chmod.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_chsize.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_compare.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_compress.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_conio.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_context.c Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
my_copy.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_cpu.c MDEV-19845: Make my_cpu.h self-contained 2020-02-01 14:56:05 +02:00
my_create.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_default.c Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
my_delete.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_div.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_dlerror.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_error.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_file.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_fopen.c Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
my_fstream.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_gethwaddr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_getncpus.c Correct FreeBSD cpuset_t type 2020-04-03 15:30:33 +02:00
my_getopt.c MDEV-18215: mariabackup does not report unknown command line options 2020-06-14 13:23:07 +03:00
my_getpagesize.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getsystime.c MDEV-20079 When setting back the system time while mysqld is running, NOW() and UNIX_TIMESTAMP() results get stuck 2019-09-04 09:30:43 +02:00
my_getwd.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_init.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_largepage.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_lib.c Merge 10.3 into 10.4 2020-04-16 12:12:26 +03:00
my_libwrap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_likely.c Optimize performance schema likely/unlikely 2018-05-07 00:07:33 +03:00
my_lock.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_lockmem.c Merge 10.3 into 10.4 2019-10-10 11:19:25 +03:00
my_malloc.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_memmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mess.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mkdir.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_mmap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_new.cc Update FSF Address 2019-05-11 21:29:06 +03:00
my_once.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_open.c Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
my_port.c Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
my_pread.c Merge 10.3 into 10.4 2019-06-19 10:49:00 +03:00
my_pthread.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_quick.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_rdtsc.c MDEV-19845: Define my_timer_cycles() inline 2019-06-28 19:19:31 +03:00
my_read.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_redel.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_rename.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_rnd.c MDEV-18531 : Use WolfSSL instead of YaSSL as "bundled" SSL/encryption library 2019-05-22 13:48:25 +02:00
my_safehash.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_safehash.h Update FSF address 2019-05-10 20:52:00 +03:00
my_seek.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_setuser.c mysys: rename ME_xxx flags to match plugin api 2018-06-04 12:32:23 +02:00
my_sleep.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_static.c Merge 10.3 into 10.4 2019-08-31 06:53:45 +03:00
my_static.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_symlink.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_symlink2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_sync.c MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_thr_init.c Merge 10.2 into 10.3 2020-04-27 14:24:41 +03:00
my_uuid.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_win_popen.cc MDEV-21062 Buildbot, Windows - sporadically missing lines from mtr's "exec" 2019-11-15 15:39:31 +01:00
my_wincond.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_winerr.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_winfile.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_winthread.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_write.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mysys_priv.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
psi_noop.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
ptr_cmp.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
queues.c Merge branch '5.5' into 10.1 2020-04-30 17:36:41 +02:00
safemalloc.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
stacktrace.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
string.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
test_charset.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_dir.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_thr_mutex.c Update FSF address 2019-05-10 20:52:00 +03:00
test_xml.c Update FSF Address 2019-05-11 21:29:06 +03:00
testhash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_alarm.c Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
thr_lock.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
thr_mutex.c MDEV-20183 data race at safe_mutex_lock() 2019-07-26 12:36:06 +03:00
thr_rwlock.c Update FSF Address 2019-05-11 21:29:06 +03:00
thr_timer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tree.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
typelib.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
waiting_threads.c Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
wqueue.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00