mariadb/client
Daniel Black 915d951431 MDEV-4827 mysqldump --dump-slave=2 --master-data=2 doesn't record both
Recording both is useful on a replication relay when the backup
can be used to replace the server, or ack as a new replica to the
server.

If an option=2, commented is selected, allow the alternate option
to exist.

This still disables --dump-slave=1 --master-data=1 as having the
a CHANGE MASTER TO and START SLAVE on different positions would be
confusing and dangerious to the try to execute the output. The
previous behaviour of silently disabling --master-data occurs in
this case.

The commented code related to --dump-slave/--master-data is greatly
expanded for human consumption.

A redundant opt_slave_data= 0 was removed from get_opts. If
--dump-slave=1 or 2, then the only possible value of --master-data
is a valid one.

Re-order to preference gtid based replication.

Based of code from Elena Stepanova.

Review by: Brandon Nesterenko and Anel Husakovic
2024-02-08 15:47:06 +11:00
..
async_example.c MWL#192: non-blocking client API, after-review fixes. 2012-01-06 12:43:18 +01:00
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h Merge 10.4 into 10.5 2022-06-02 16:51:13 +03:00
CMakeLists.txt Merge remote-tracking branch 'upstream/10.4' into 10.5 2021-09-10 17:16:18 +03:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
mariadb-conv.cc Added 'const' to arguments in get_one_option and find_typeset() 2021-02-08 12:16:29 +02:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc Merge branch '10.4' into 10.5 2024-01-31 17:32:53 +01:00
mysql_plugin.c Merge remote-tracking branch '10.4' into 10.5 2023-03-31 21:32:41 +02:00
mysql_upgrade.c Merge 10.4 into 10.5 2023-12-19 18:30:58 +02:00
mysqladmin.cc Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
mysqlbinlog.cc Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
mysqlcheck.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
mysqldump.c MDEV-4827 mysqldump --dump-slave=2 --master-data=2 doesn't record both 2024-02-08 15:47:06 +11:00
mysqlimport.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
mysqlshow.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
mysqlslap.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
mysqltest.cc Merge 10.4 into 10.5 2023-12-18 08:59:07 +02:00
readline.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00