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/log_event.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/log_event.h')
-rw-r--r-- | sql/log_event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index ff7460e7ef6..8c43f0465dc 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -3073,9 +3073,12 @@ struct slave_connection_state ~slave_connection_state(); int load(char *slave_request, size_t len); + int load(const rpl_gtid *gtid_list, uint32 count); rpl_gtid *find(uint32 domain_id); + int update(const rpl_gtid *in_gtid); void remove(const rpl_gtid *gtid); ulong count() const { return hash.records; } + int to_string(String *out_str); }; @@ -3261,6 +3264,8 @@ public: #ifdef MYSQL_SERVER bool write(IO_CACHE *file); #endif + static bool peek(const char *event_start, uint32 event_len, + rpl_gtid **out_gtid_list, uint32 *out_list_len); }; |