mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-26: Global transaction commit. Intermediate commit.
Now slave records GTID in mysql.rpl_slave_state when applying XID log event.
This commit is contained in:
@@ -120,6 +120,8 @@ static MYSQL_BIN_LOG::xid_count_per_binlog *
|
||||
static bool start_binlog_background_thread();
|
||||
|
||||
|
||||
rpl_binlog_state rpl_global_gtid_binlog_state;
|
||||
|
||||
/**
|
||||
purge logs, master and slave sides both, related error code
|
||||
convertor.
|
||||
@@ -5334,7 +5336,7 @@ MYSQL_BIN_LOG::write_gtid_event(THD *thd, bool standalone,
|
||||
|
||||
/* Update the replication state (last GTID in each replication domain). */
|
||||
mysql_mutex_lock(&LOCK_rpl_gtid_state);
|
||||
global_rpl_gtid_state.update(>id);
|
||||
rpl_global_gtid_binlog_state.update(>id);
|
||||
mysql_mutex_unlock(&LOCK_rpl_gtid_state);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user