diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-11-15 13:11:35 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-11-15 13:11:35 +0100 |
commit | bdbce30dee9bf550cf09e5d9098bc2a7e0ad940e (patch) | |
tree | ab2d41f16d3bcec7ac78d6b12545dce8615ddbd0 /scripts | |
parent | 3e798b033ab37291bc4e4a72e887aaf9a042662b (diff) | |
download | mariadb-git-bdbce30dee9bf550cf09e5d9098bc2a7e0ad940e.tar.gz |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_system_tables.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mysql_system_tables.sql b/scripts/mysql_system_tables.sql index a55c5f60351..8f8d6356999 100644 --- a/scripts/mysql_system_tables.sql +++ b/scripts/mysql_system_tables.sql @@ -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; |