summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2011-08-16 11:51:02 +0200
committerunknown <knielsen@knielsen-hq.org>2011-08-16 11:51:02 +0200
commit9313032283f1650d11fb36066f31d966e8492bdc (patch)
tree40f0c1a4e83ed3eb0e1de2a9aa4e61a304c72b16 /sql/slave.h
parent50846bf7e5ec60e081b98d2b5d74680e65211d91 (diff)
downloadmariadb-git-9313032283f1650d11fb36066f31d966e8492bdc.tar.gz
MWL#234: Implement option to switch between master-side and client-side filtering of @@skip_replication events.
Diffstat (limited to 'sql/slave.h')
-rw-r--r--sql/slave.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h
index 1aa5b374e4b..802320446bf 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -134,6 +134,15 @@ extern ulonglong relay_log_space_limit;
*/
#define SLAVE_FORCE_ALL 4
+/*
+ Values for the option --replicate-events-marked-for-skip.
+ Must match the typelib replicate_events_marked_for_skip_typelib in mysqld.cc
+*/
+#define RPL_SKIP_REPLICATE 0
+#define RPL_SKIP_FILTER_ON_SLAVE 1
+#define RPL_SKIP_FILTER_ON_MASTER 2
+
+
int init_slave();
void init_slave_skip_errors(const char* arg);
bool flush_relay_log_info(Relay_log_info* rli);