mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
MDEV-26: Global transaction ID.
Implement START SLAVE UNTIL master_gtid_pos = "<GTID position>". Add test cases, including a test showing how to use this to promote a new master among a set of slaves.
This commit is contained in:
parent
7202c21b34
commit
9fae993024
19 changed files with 1824 additions and 147 deletions
|
|
@ -142,6 +142,7 @@ struct rpl_binlog_state
|
|||
|
||||
void reset();
|
||||
void free();
|
||||
bool load(struct rpl_gtid *list, uint32 count);
|
||||
int update(const struct rpl_gtid *gtid);
|
||||
uint64 seq_no_from_state();
|
||||
int write_to_iocache(IO_CACHE *dest);
|
||||
|
|
@ -172,6 +173,7 @@ struct slave_connection_state
|
|||
void remove(const rpl_gtid *gtid);
|
||||
ulong count() const { return hash.records; }
|
||||
int to_string(String *out_str);
|
||||
int append_to_string(String *out_str);
|
||||
};
|
||||
|
||||
extern bool rpl_slave_state_tostring_helper(String *dest, const rpl_gtid *gtid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue