Brandon Nesterenko
5ab5ff08b0
MDEV-19801: Change defaults for CHANGE MASTER TO so that GTID-based replication is used by default if master supports it
...
This commit makes replicas crash-safe by default by changing the
Using_Gtid value to be Slave_Pos on a fresh slave start and after
RESET SLAVE is issued. If the primary server does not support GTIDs
(i.e., version < 10), the replica will fall back to Using_Gtid=No on
slave start and after RESET SLAVE.
The following additional informational messages/warnings are added:
1. When Using_Gtid is automatically changed. That is, if RESET
SLAVE reverts Using_Gtid back to Slave_Pos, or Using_Gtid is
inferred to No from a CHANGE MASTER TO given with log coordinates
without MASTER_USE_GTID.
2. If options are ignored in CHANGE MASTER TO. If CHANGE MASTER TO
is given with log coordinates, yet also specifies
MASTER_USE_GTID=Slave_Pos, a warning message is given that the log
coordinate options are ignored.
Additionally, an MTR macro has been added for RESET SLAVE,
reset_slave.inc, which provides modes/options for resetting a slave
in log coordinate or gtid modes. When in log coordinates mode, the
macro will execute CHANGE MASTER TO MASTER_USE_GTID=No after the
RESET SLAVE command. When in GTID mode, an extra parameter,
reset_slave_keep_gtid_state, can be set to reset or preserve the
value of gtid_slave_pos.
Reviewed By:
===========
Andrei Elkin <andrei.elkin@mariadb.com >
2022-07-26 13:31:27 -06:00
..
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-05-04 11:10:17 -07:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2014-12-03 19:53:40 +04:00
2010-03-17 23:42:07 -07:00
2014-12-03 19:53:40 +04:00
2014-12-03 19:53:40 +04:00
2014-12-03 19:53:40 +04:00
2014-12-03 19:53:40 +04:00
2010-03-17 23:42:07 -07:00
2011-10-12 10:10:52 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2017-02-10 06:30:42 -05:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2011-10-12 10:10:52 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-01-05 12:23:05 +05:30
2011-01-05 12:23:05 +05:30
2010-03-17 23:42:07 -07:00
2011-01-05 12:23:05 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2017-02-10 06:30:42 -05:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-01-05 12:23:05 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-01-05 12:23:05 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-02-07 11:10:35 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-19 15:44:07 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-19 15:44:07 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-18 12:34:48 +02:00
2021-03-10 09:12:57 +01:00
2018-03-29 13:59:44 +03:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-19 15:44:07 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2015-02-10 10:21:15 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-05-04 11:10:17 -07:00
2010-05-04 11:10:17 -07:00
2021-03-10 09:12:57 +01:00
2010-05-04 11:10:17 -07:00
2010-05-04 11:10:17 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2018-03-29 13:59:44 +03:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2018-03-29 13:59:44 +03:00
2021-03-19 11:42:44 +02:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2022-07-26 13:31:27 -06:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-03-10 09:12:57 +01:00
2021-03-10 09:12:57 +01:00
2010-03-17 23:42:07 -07:00
2021-08-31 13:55:02 +03:00
2010-03-17 23:42:07 -07:00
2012-07-30 04:16:49 +04:00
2012-07-30 04:16:49 +04:00
2012-07-30 04:16:49 +04:00
2012-07-30 04:16:49 +04:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2017-10-04 10:28:20 +02:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2016-09-14 13:53:32 +03:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2021-10-26 17:07:46 +02:00
2010-03-17 23:42:07 -07:00
2021-10-26 17:07:46 +02:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2019-05-11 13:52:31 +03:00
2020-03-24 20:47:41 +02:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2019-05-11 13:52:31 +03:00
2017-02-10 06:30:42 -05:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2011-10-12 10:10:52 +05:30
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00
2010-03-17 23:42:07 -07:00