diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-11-05 15:01:49 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-11-05 15:01:49 +0100 |
commit | 03f28863e845976f899c8c35dab3add918f4a8f6 (patch) | |
tree | 47d17f08d260da4dcf982110415f1b63b1f311a4 /sql/rpl_rli.h | |
parent | ab8e8f4b277c23e6989650e0590ec0a5fa03fb3a (diff) | |
download | mariadb-git-03f28863e845976f899c8c35dab3add918f4a8f6.tar.gz |
MDEV-26: Global transaction commit. Intermediate commit.
Now slave records GTID in mysql.rpl_slave_state when applying XID log event.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r-- | sql/rpl_rli.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h index 6144d37026b..0bcaaa37a59 100644 --- a/sql/rpl_rli.h +++ b/sql/rpl_rli.h @@ -307,6 +307,14 @@ public: char slave_patternload_file[FN_REFLEN]; size_t slave_patternload_file_size; + /* + Current GTID being processed. + The sub_id gives the binlog order within one domain_id. A zero sub_id + means that there is no active GTID. + */ + uint64 gtid_sub_id; + rpl_gtid current_gtid; + Relay_log_info(bool is_slave_recovery); ~Relay_log_info(); @@ -584,4 +592,8 @@ private: int init_relay_log_info(Relay_log_info* rli, const char* info_fname); +extern const LEX_STRING rpl_gtid_slave_state_table_name; +extern struct rpl_slave_state rpl_global_gtid_slave_state; + + #endif /* RPL_RLI_H */ |