mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-26: Global transaction id: Intermediate commit.
Now slave can connect to master, sending start position as slave state rather than old-style binlog name/position. This enables to switch to a new master by changing just connection information, replication slave GTID state ensures that slave starts at the correct point in the new master.
This commit is contained in:
@@ -20,6 +20,12 @@
|
||||
--
|
||||
|
||||
set sql_mode='';
|
||||
|
||||
-- We want this to be created with the default storage engine.
|
||||
-- This way, if InnoDB is used we get crash safety, and if MyISAM is used
|
||||
-- we avoid mixed-engine transactions.
|
||||
CREATE TABLE IF NOT EXISTS rpl_slave_state (domain_id INT UNSIGNED NOT NULL, sub_id BIGINT UNSIGNED NOT NULL, server_id INT UNSIGNED NOT NULL, seq_no BIGINT UNSIGNED NOT NULL, PRIMARY KEY (domain_id, sub_id)) comment='Replication slave GTID state';
|
||||
|
||||
set storage_engine=myisam;
|
||||
flush tables;
|
||||
|
||||
|
Reference in New Issue
Block a user