diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-02-11 16:44:38 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-02-11 16:44:38 +0100 |
commit | 041f26d349f1afb9edf6b0f17dfecfb3f29a9d25 (patch) | |
tree | 820cad1d6821d3d806ee0e7c4f0e5166141a56e4 /sql/sql_repl.h | |
parent | 132c26604417abb0936df1bca5198c08a5d8bb84 (diff) | |
download | mariadb-git-041f26d349f1afb9edf6b0f17dfecfb3f29a9d25.tar.gz |
MDEV-26. Intermediate commit.
Implement binlog_gtid_pos() function. This will be used so that
the slave can obtain the gtid position automatically from first
connect with old-style position - then MASTER_GTID_POS=AUTO will
work the next time. Can also be used by mysqldump --master-data
to give the current gtid position directly.
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r-- | sql/sql_repl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h index 89fa0cf25be..73046dd8667 100644 --- a/sql/sql_repl.h +++ b/sql/sql_repl.h @@ -69,6 +69,7 @@ extern PSI_mutex_key key_LOCK_slave_state, key_LOCK_binlog_state; void rpl_init_gtid_slave_state(); void rpl_deinit_gtid_slave_state(); int rpl_load_gtid_slave_state(THD *thd); +int gtid_state_from_binlog_pos(const char *name, uint32 pos, String *out_str); #endif /* HAVE_REPLICATION */ |