diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-06-07 08:43:21 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-06-07 08:43:21 +0200 |
commit | 7b6ab5638ac8bd4bb604e3c39d5f21218ab17688 (patch) | |
tree | 9415401e10fe06d7a052ef6e4fddb3cb3d6c772c /sql/sql_repl.cc | |
parent | 4749d40c635634e25e07d28ce1a04e9263bcc375 (diff) | |
download | mariadb-git-7b6ab5638ac8bd4bb604e3c39d5f21218ab17688.tar.gz |
MDEV-4483: CHANGE MASTER TO master_use_gtid=xxx looses old-style coordinates.
There was some old code that cleared the position in CHANGE MASTER,
it was forgotten to be removed.
In addition, add code that saves/restores the old-style position
when we nuke the old relay logs as part of GTID slave start.
Normally we will not use these, but it could be useful in case
the GTID connect fails and user wants to go back to the old-style
coordinates.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 1afe5addf0e..29f2897315c 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -3293,16 +3293,6 @@ bool change_master(THD* thd, Master_info* mi, bool *master_info_added) ret= TRUE; goto err; } - - if (mi->using_gtid != Master_info::USE_GTID_NO) - { - /* - Clear the position in the master binlogs, so that we request the - correct GTID position. - */ - mi->master_log_name[0]= 0; - mi->master_log_pos= 0; - } } else { |