1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
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
..
2022-06-02 16:51:13 +03:00
2020-11-03 16:24:47 +02:00
2019-05-11 21:29:06 +03:00
2022-08-09 18:41:09 +03:00
2019-05-11 21:29:06 +03:00
2023-12-19 18:30:58 +02:00
2024-01-31 17:32:53 +01:00
2023-11-08 12:59:00 +01:00
2023-11-08 12:59:00 +01:00
2023-07-20 11:54:52 +02:00
2023-07-20 11:54:52 +02:00
2023-07-20 11:54:52 +02:00
2023-07-20 11:54:52 +02:00
2023-12-18 08:59:07 +02:00