43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
#############################################################
|
|
# Author: JBM
|
|
# Date: 2006-02-24
|
|
# Purpose: Trying to test ability to replicate from cluster
|
|
# to innodb, or myisam, or replicate from innodb/myisam to
|
|
# cluster slave. Due to limitations I have created wrappers
|
|
# to be able to use the same code for all these different
|
|
# test and to have control over the tests.
|
|
##############################################################
|
|
-- source include/have_ndb.inc
|
|
-- source include/master-slave.inc
|
|
|
|
# workaround for Bug #34006 binlog race for temporary ndb table
|
|
# - disable using temporary ndb tables
|
|
-- connection master
|
|
set ndb_table_temporary=0;
|
|
|
|
-- connection slave
|
|
set @@global.slave_exec_mode= 'IDEMPOTENT';
|
|
|
|
# Silence warning about Innodb not supporting HASH index algorithm
|
|
# when creating mysql.ndb_apply_status
|
|
--disable_warnings ER_UNSUPPORTED_INDEX_ALGORITHM ONCE
|
|
CREATE TABLE mysql.ndb_apply_status
|
|
( server_id INT UNSIGNED NOT NULL,
|
|
epoch BIGINT UNSIGNED NOT NULL,
|
|
log_name VARBINARY(255) NOT NULL,
|
|
start_pos BIGINT UNSIGNED NOT NULL,
|
|
end_pos BIGINT UNSIGNED NOT NULL,
|
|
PRIMARY KEY USING HASH (server_id)) ENGINE=INNODB
|
|
CHARACTER SET latin1;
|
|
|
|
-- connection master
|
|
set new=on;
|
|
set default_storage_engine=ndbcluster;
|
|
|
|
--source suite/ndb_rpl/t/ndb_rpl_2multi_eng.inc
|
|
|
|
--connection slave
|
|
set @@global.slave_exec_mode= 'STRICT';
|
|
drop table mysql.ndb_apply_status;
|
|
--source include/rpl_end.inc
|