diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-08-23 14:02:13 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-08-23 14:02:13 +0200 |
commit | f9c2b402f437a2278b04d971054fcacc57eb07aa (patch) | |
tree | 5e5beb8bd8ab697ca05f3c39ecb53fb85ee7f147 /sql/rpl_gtid.h | |
parent | 62d358295bbf8df16da75dd109c463de796dabe0 (diff) | |
download | mariadb-git-f9c2b402f437a2278b04d971054fcacc57eb07aa.tar.gz |
MDEV-26: Global transaction ID.
Implement @@gtid_binlog_state. This is the internal state of the binlog
(most recent GTID logged for every domain_id and server_id). This allows
to save the state before RESET MASTER and restore it afterwards.
Diffstat (limited to 'sql/rpl_gtid.h')
-rw-r--r-- | sql/rpl_gtid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/rpl_gtid.h b/sql/rpl_gtid.h index 8d2c98d54d3..d6da2295abe 100644 --- a/sql/rpl_gtid.h +++ b/sql/rpl_gtid.h @@ -163,6 +163,7 @@ struct rpl_binlog_state int get_gtid_list(rpl_gtid *gtid_list, uint32 list_size); int get_most_recent_gtid_list(rpl_gtid **list, uint32 *size); bool append_pos(String *str); + bool append_state(String *str); rpl_gtid *find(uint32 domain_id, uint32 server_id); rpl_gtid *find_most_recent(uint32 domain_id); }; @@ -205,5 +206,7 @@ struct slave_connection_state extern bool rpl_slave_state_tostring_helper(String *dest, const rpl_gtid *gtid, bool *first); extern int gtid_check_rpl_slave_state_table(TABLE *table); +extern rpl_gtid *gtid_parse_string_to_list(const char *p, size_t len, + uint32 *out_len); #endif /* RPL_GTID_H */ |