summaryrefslogtreecommitdiff
path: root/sql/log_event.h
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/log_event.h
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/log_event.h')
-rw-r--r--sql/log_event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 138ed2c6926..312a9656d01 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -3057,6 +3057,7 @@ public:
bool is_valid() const { return binlog_file_name != 0; }
#ifdef MYSQL_SERVER
bool write(IO_CACHE* file);
+ enum_skip_reason do_shall_skip(rpl_group_info *rgi);
#endif
};
@@ -3274,6 +3275,7 @@ public:
bool to_packet(String *packet);
bool write(IO_CACHE *file);
virtual int do_apply_event(rpl_group_info *rgi);
+ enum_skip_reason do_shall_skip(rpl_group_info *rgi);
#endif
static bool peek(const char *event_start, uint32 event_len,
uint8 checksum_alg,