1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

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.
This commit is contained in:
unknown
2013-08-23 14:02:13 +02:00
parent 62d358295b
commit f9c2b402f4
17 changed files with 383 additions and 13 deletions

View File

@ -3474,7 +3474,7 @@ err:
@retval 0 success
@retval 1 error
*/
int reset_master(THD* thd)
int reset_master(THD* thd, rpl_gtid *init_state, uint32 init_state_len)
{
if (!mysql_bin_log.is_open())
{
@ -3483,7 +3483,7 @@ int reset_master(THD* thd)
return 1;
}
if (mysql_bin_log.reset_logs(thd, 1))
if (mysql_bin_log.reset_logs(thd, 1, init_state, init_state_len))
return 1;
RUN_HOOK(binlog_transmit, after_reset_master, (thd, 0 /* flags */));
return 0;