diff options
author | heikki@hundin.mysql.fi <> | 2005-04-26 17:57:15 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2005-04-26 17:57:15 +0300 |
commit | f12cd8c7085f31e4f5d1161b45c242d7641fbe47 (patch) | |
tree | e5cbcfa6643db73a1bd23f9b261e97e953590760 /sql/handler.cc | |
parent | 005c447183651411ead446e463909118f7020298 (diff) | |
parent | 8974ce0836c79d6faa137f334de3b56abc6499af (diff) | |
download | mariadb-git-f12cd8c7085f31e4f5d1161b45c242d7641fbe47.tar.gz |
Merge heikki@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/heikki/mysql-5.0
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 542efaba2bf..95fd4d97616 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; +} |