summaryrefslogtreecommitdiff
path: root/sql/sql_repl.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-03-18 15:09:36 +0100
committerunknown <knielsen@knielsen-hq.org>2013-03-18 15:09:36 +0100
commit9d9ddad759a432967934baac596ef20d613214b3 (patch)
treec0068bca3c56d1806265e50b7fed442dbf70e84a /sql/sql_repl.h
parent379819d8c06ee086e9a3f5cf7e6c225fdb626596 (diff)
downloadmariadb-git-9d9ddad759a432967934baac596ef20d613214b3.tar.gz
MDEV-26: Global transaction ID.
Fix things so that a master can switch with MASTER_GTID_POS=AUTO to a slave that was previously running with log_slave_updates=0, by looking into the slave replication state on the master when the slave requests something not present in the binlog. Be a bit more strict about what position the slave can ask for, to avoid some easy-to-hit misconfiguration errors. Start over with seq_no counter when RESET MASTER.
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r--sql/sql_repl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h
index 73046dd8667..dd67aaa12f8 100644
--- a/sql/sql_repl.h
+++ b/sql/sql_repl.h
@@ -68,7 +68,6 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, ushort flags);
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 */