diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-04-05 16:20:58 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-04-05 16:20:58 +0200 |
commit | b7363eb4acd958bfac73ecad67367c44a6fa830d (patch) | |
tree | e50f993d71ad3bf174b14923927c0a572d8cc4d2 /sql/sql_repl.h | |
parent | c2cbc9cee6a3f8f745501ee2f5fcfd4586f53bbd (diff) | |
download | mariadb-git-b7363eb4acd958bfac73ecad67367c44a6fa830d.tar.gz |
MDEV-26: Global transaction ID.
Replace CHANGE MASTER TO ... master_gtid_pos='xxx' with a new system
variable @@global.gtid_pos.
This is more logical; @@gtid_pos is global, not per-master, and it is not
affected by RESET SLAVE.
Also rename master_gtid_pos=AUTO to master_use_gtid=1, which again is more
logical.
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r-- | sql/sql_repl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h index 22183f2a2b2..3af8f721bd7 100644 --- a/sql/sql_repl.h +++ b/sql/sql_repl.h @@ -70,6 +70,8 @@ void rpl_init_gtid_slave_state(); void rpl_deinit_gtid_slave_state(); int gtid_state_from_binlog_pos(const char *name, uint32 pos, String *out_str); int rpl_append_gtid_state(String *dest, bool use_binlog); +bool rpl_gtid_pos_check(char *str, size_t len); +bool rpl_gtid_pos_update(THD *thd, char *str, size_t len); #endif /* HAVE_REPLICATION */ |