summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2014-07-09 13:36:28 +0200
committerKristian Nielsen <knielsen@knielsen-hq.org>2014-07-09 13:36:28 +0200
commita985ac3affe65884a579ae4da371d6b32860d872 (patch)
treebe9f10616a8a927a3af2c39ae26a0c0e14a6c41c /tests
parentc16c3b9e47d805821ff0a6b3c317c379b5d25c4d (diff)
downloadmariadb-git-a985ac3affe65884a579ae4da371d6b32860d872.tar.gz
MDEV-6336: mysqldump --master-data does not work with GTID setups
MDEV-6344: mysqldump issues FLUSH TABLES, which gets written into binlog and replicated Add a --gtid option (for compatibility, the original behaviour is preserved when --gtid is not used). With --gtid, --master-data and --dump-slave output the GTID position (the old-style file/offset position is still output, but commented out). Also, a CHANGE MASTER TO master_use_gtid=slave_pos is output to ensure a provisioned slave is configured in GTID, as requested. Without --gtid, the GTID position is still output, if available, but commented out. Also fix MDEV-6344, to avoid FLUSH TABLES getting into the binlog. Otherwise a mysqldump on a slave server will silently inject a GTID which does not exist on the master, which is highly undesirable. Also fix an incorrect error handling around obtaining binlog position with --master-data (was probably unlikely to trigger in most cases).
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions