summaryrefslogtreecommitdiff
path: root/sql/share
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2014-02-11 14:06:03 +0100
committerunknown <knielsen@knielsen-hq.org>2014-02-11 14:06:03 +0100
commitcc7925765e23117bc7cb6dcfdcb0cd4ddcb9d2bc (patch)
tree5acb3287ef0a8c871b45ecf9f807ac3f24aeee4c /sql/share
parentf3a6f86ec3452b346de513075f72dbd02549a5fb (diff)
downloadmariadb-git-cc7925765e23117bc7cb6dcfdcb0cd4ddcb9d2bc.tar.gz
MDEV-4937: sql_slave_skip_counter does not work with GTID
As a side-effect of purge_relay_logs(), sql_slave_skip_counter was silently ignored in GTID mode. But sql_slave_skip_counter in fact is not a good match with GTID. And it is not really needed either, as users can explicitly set @@gtid_slave_pos to skip specific GTIDs, in a way that matches well how GTID replication works. So with this patch, we give an error on attempts to set sql_slave_skip_counter when using GTID, with a suggestion to use gtid_slave_pos instead, if needed.
Diffstat (limited to 'sql/share')
-rw-r--r--sql/share/errmsg-utf8.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt
index 1ed2a2ba462..92a5b6a2ae9 100644
--- a/sql/share/errmsg-utf8.txt
+++ b/sql/share/errmsg-utf8.txt
@@ -6555,3 +6555,5 @@ ER_CHANGE_SLAVE_PARALLEL_THREADS_ACTIVE
eng "Cannot change @@slave_parallel_threads while another change is in progress"
ER_PRIOR_COMMIT_FAILED
eng "Commit failed due to failure of an earlier commit on which this one depends"
+ER_SLAVE_SKIP_NOT_IN_GTID
+ eng "When using GTID, @@sql_slave_skip_counter can not be used. Instead, setting @@gtid_slave_pos explicitly can be used to skip to after a given GTID position."