summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc57
1 files changed, 57 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 14b8974ece9..6ab4f7824ed 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -2411,3 +2411,60 @@ TYPELIB *ha_known_exts(void)
}
return &known_extensions;
}
+
+/*
+ Reports to table handlers up to which position we have sent the binlog
+ to a slave in replication
+
+ SYNOPSIS
+ ha_repl_report_sent_binlog()
+
+ NOTES
+ Only works for InnoDB at the moment
+
+ RETURN VALUE
+ Always 0 (= success)
+
+ PARAMETERS
+ THD *thd in: thread doing the binlog communication to
+ the slave
+ char *log_file_name in: binlog file name
+ my_off_t end_offset in: the offset in the binlog file up to
+ which we sent the contents to the slave
+*/
+
+int ha_repl_report_sent_binlog(THD *thd, char *log_file_name,
+ my_off_t end_offset)
+{
+#ifdef HAVE_INNOBASE_DB
+ return innobase_repl_report_sent_binlog(thd,log_file_name,end_offset);
+#else
+ /* remove warnings about unused parameters */
+ thd=thd; log_file_name=log_file_name; end_offset=end_offset;
+ return 0;
+#endif
+}
+
+/*
+ Reports to table handlers that we stop replication to a specific slave
+
+ SYNOPSIS
+ ha_repl_report_replication_stop()
+
+ NOTES
+ Does nothing at the moment
+
+ RETURN VALUE
+ Always 0 (= success)
+
+ PARAMETERS
+ THD *thd in: thread doing the binlog communication to
+ the slave
+*/
+
+int ha_repl_report_replication_stop(THD *thd)
+{
+ thd = thd;
+
+ return 0;
+}