mirror of
https://github.com/MariaDB/server.git
synced 2026-04-17 05:45:33 +02:00
Merge branch 'bb-10.2-ext' into 10.3
This commit is contained in:
commit
bb8e99fdc3
570 changed files with 79213 additions and 12267 deletions
|
|
@ -0,0 +1,42 @@
|
|||
#
|
||||
# This is a helper script for rpl_row_img.test. It creates
|
||||
# all combinations MyISAM / InnoDB in a three server replication
|
||||
# chain. Each engine combination is tested against the current
|
||||
# seetings for binlog_row_image (on each server).
|
||||
#
|
||||
# The test script that is executed on every combination is the
|
||||
# only argument to this wrapper script. See below.
|
||||
#
|
||||
# This script takes one parameter:
|
||||
# - $row_img_test_script
|
||||
# the name of the test script to include in every combination
|
||||
#
|
||||
# Sample usage:
|
||||
# -- let $row_img_test_script= extra/rpl_tests/rpl_row_img.test
|
||||
# -- source include/rpl_row_img_general_loop.test
|
||||
|
||||
|
||||
-- let $engine_type_a= 2
|
||||
-- let $server_1_engine= TokuDB
|
||||
while($engine_type_a)
|
||||
{
|
||||
-- let $engine_type_b= 2
|
||||
-- let $server_2_engine= TokuDB
|
||||
while($engine_type_b)
|
||||
{
|
||||
-- let $engine_type_c= 2
|
||||
-- let $server_3_engine= TokuDB
|
||||
while($engine_type_c)
|
||||
{
|
||||
-- echo ### engines: $server_1_engine, $server_2_engine, $server_3_engine
|
||||
-- source $row_img_test_script
|
||||
|
||||
-- let $server_3_engine= InnoDB
|
||||
-- dec $engine_type_c
|
||||
}
|
||||
-- let $server_2_engine= InnoDB
|
||||
-- dec $engine_type_b
|
||||
}
|
||||
-- let $server_1_engine= InnoDB
|
||||
-- dec $engine_type_a
|
||||
}
|
||||
|
|
@ -25,11 +25,13 @@ update t set b=b+2 where a=1;
|
|||
update t set b=b+3 where a=4;
|
||||
update t set b=b+4 where a=3;
|
||||
update t set b=b+1 where 1<=a and a<=3;
|
||||
select unix_timestamp() into @tstart;
|
||||
# select unix_timestamp() into @tstart;
|
||||
connection master;
|
||||
connection slave;
|
||||
connection master;
|
||||
select unix_timestamp() into @tend;
|
||||
# Commented out for MariaDB
|
||||
# select unix_timestamp() into @tend;
|
||||
# select @tend-@tstart <= 5; # assert no delay in the delete time
|
||||
connection slave;
|
||||
select * from t;
|
||||
a b
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ tokudb_rpl_unique_checks OFF
|
|||
tokudb_rpl_unique_checks_delay 5000
|
||||
connection master;
|
||||
create table t (a bigint not null, primary key(a)) engine=tokudb;
|
||||
select unix_timestamp() into @tstart;
|
||||
insert into t values (1);
|
||||
insert into t values (2),(3);
|
||||
insert into t values (4);
|
||||
connection slave;
|
||||
connection master;
|
||||
connection slave;
|
||||
connection master;
|
||||
include/diff_tables.inc [master:test.t, slave:test.t]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,52 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression("read free replication is disabled for tokudb table");
|
||||
connection master;
|
||||
CREATE TABLE t (a int(11), b char(20)) ENGINE = TokuDB;
|
||||
INSERT INTO t (a, b) VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e');
|
||||
connection slave;
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
1 a
|
||||
2 b
|
||||
3 c
|
||||
4 d
|
||||
5 e
|
||||
connection master;
|
||||
UPDATE t SET a = a + 10 WHERE b = 'b';
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
1 a
|
||||
12 b
|
||||
3 c
|
||||
4 d
|
||||
5 e
|
||||
connection slave;
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
1 a
|
||||
12 b
|
||||
3 c
|
||||
4 d
|
||||
5 e
|
||||
connection master;
|
||||
UPDATE t SET a = a + 10 WHERE b = 'b';
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
1 a
|
||||
22 b
|
||||
3 c
|
||||
4 d
|
||||
5 e
|
||||
connection slave;
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
1 a
|
||||
22 b
|
||||
3 c
|
||||
4 d
|
||||
5 e
|
||||
connection master;
|
||||
DROP TABLE t;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
CREATE TABLE t1 (a INT) ENGINE=tokudb;
|
||||
begin;
|
||||
insert into t1 values(1);
|
||||
flush tables with read lock;
|
||||
commit;
|
||||
connection slave;
|
||||
connection master;
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
580
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_insert_id.result
Normal file
580
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_insert_id.result
Normal file
|
|
@ -0,0 +1,580 @@
|
|||
#
|
||||
# Setup
|
||||
#
|
||||
#
|
||||
# See if queries that use both auto_increment and LAST_INSERT_ID()
|
||||
# are replicated well
|
||||
#
|
||||
# We also check how the foreign_key_check variable is replicated
|
||||
#
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection master;
|
||||
SET @old_concurrent_insert= @@global.concurrent_insert;
|
||||
SET @@global.concurrent_insert= 0;
|
||||
connection master;
|
||||
create table t1(a int auto_increment, key(a)) engine=tokudb;
|
||||
create table t2(b int auto_increment, c int, key(b)) engine=tokudb;
|
||||
insert into t1 values (1),(2),(3);
|
||||
insert into t1 values (null);
|
||||
insert into t2 values (null,last_insert_id());
|
||||
connection slave;
|
||||
select * from t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
1 4
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
create table t1(a int auto_increment, key(a)) engine=tokudb;
|
||||
create table t2(b int auto_increment, c int, key(b), foreign key(b) references t1(a)) engine=tokudb;
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
insert into t1 values (10);
|
||||
insert into t1 values (null),(null),(null);
|
||||
insert into t2 values (5,0);
|
||||
insert into t2 values (null,last_insert_id());
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
connection slave;
|
||||
select * from t1;
|
||||
a
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
select * from t2;
|
||||
b c
|
||||
5 0
|
||||
6 11
|
||||
connection master;
|
||||
#
|
||||
# check if INSERT SELECT in auto_increment is well replicated (bug #490)
|
||||
#
|
||||
drop table t2;
|
||||
drop table t1;
|
||||
create table t1(a int auto_increment, key(a)) engine=tokudb;
|
||||
create table t2(b int auto_increment, c int, key(b)) engine=tokudb;
|
||||
insert into t1 values (10);
|
||||
insert into t1 values (null),(null),(null);
|
||||
insert into t2 values (5,0);
|
||||
insert into t2 (c) select * from t1 ORDER BY a;
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
5 0
|
||||
6 10
|
||||
7 11
|
||||
8 12
|
||||
9 13
|
||||
connection slave;
|
||||
select * from t1 ORDER BY a;
|
||||
a
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
5 0
|
||||
6 10
|
||||
7 11
|
||||
8 12
|
||||
9 13
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
connection slave;
|
||||
#
|
||||
# Bug#8412: Error codes reported in binary log for CHARACTER SET,
|
||||
# FOREIGN_KEY_CHECKS
|
||||
#
|
||||
connection master;
|
||||
SET TIMESTAMP=1000000000;
|
||||
CREATE TABLE t1 ( a INT UNIQUE ) engine=tokudb;
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
INSERT INTO t1 VALUES (1),(1);
|
||||
Got one of the listed errors
|
||||
connection slave;
|
||||
connection master;
|
||||
drop table t1;
|
||||
connection slave;
|
||||
#
|
||||
# Bug#14553: NULL in WHERE resets LAST_INSERT_ID
|
||||
#
|
||||
connection master;
|
||||
set @@session.sql_auto_is_null=1;
|
||||
create table t1(a int auto_increment, key(a)) engine=tokudb;
|
||||
create table t2(a int) engine=tokudb;
|
||||
insert into t1 (a) values (null);
|
||||
insert into t2 (a) select a from t1 where a is null;
|
||||
insert into t2 (a) select a from t1 where a is null;
|
||||
select * from t2;
|
||||
a
|
||||
1
|
||||
connection slave;
|
||||
connection slave;
|
||||
select * from t2;
|
||||
a
|
||||
1
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
#
|
||||
# End of 4.1 tests
|
||||
#
|
||||
#
|
||||
# BUG#15728: LAST_INSERT_ID function inside a stored function returns 0
|
||||
#
|
||||
# The solution is not to reset last_insert_id on enter to sub-statement.
|
||||
#
|
||||
connection master;
|
||||
drop function if exists bug15728;
|
||||
drop function if exists bug15728_insert;
|
||||
drop table if exists t1, t2;
|
||||
create table t1 (
|
||||
id int not null auto_increment,
|
||||
last_id int,
|
||||
primary key (id)
|
||||
) engine=tokudb;
|
||||
create function bug15728() returns int(11)
|
||||
return last_insert_id();
|
||||
insert into t1 (last_id) values (0);
|
||||
insert into t1 (last_id) values (last_insert_id());
|
||||
insert into t1 (last_id) values (bug15728());
|
||||
create table t2 (
|
||||
id int not null auto_increment,
|
||||
last_id int,
|
||||
primary key (id)
|
||||
) engine=tokudb;
|
||||
create function bug15728_insert() returns int(11) modifies sql data
|
||||
begin
|
||||
insert into t2 (last_id) values (bug15728());
|
||||
return bug15728();
|
||||
end|
|
||||
create trigger t1_bi before insert on t1 for each row
|
||||
begin
|
||||
declare res int;
|
||||
select bug15728_insert() into res;
|
||||
set NEW.last_id = res;
|
||||
end|
|
||||
insert into t1 (last_id) values (0);
|
||||
drop trigger t1_bi;
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
4
|
||||
select bug15728_insert();
|
||||
bug15728_insert()
|
||||
2
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
4
|
||||
insert into t1 (last_id) values (bug15728());
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
5
|
||||
drop procedure if exists foo;
|
||||
create procedure foo()
|
||||
begin
|
||||
declare res int;
|
||||
insert into t2 (last_id) values (bug15728());
|
||||
insert into t1 (last_id) values (bug15728());
|
||||
end|
|
||||
call foo();
|
||||
select * from t1;
|
||||
id last_id
|
||||
1 0
|
||||
2 1
|
||||
3 2
|
||||
4 1
|
||||
5 4
|
||||
6 3
|
||||
select * from t2;
|
||||
id last_id
|
||||
1 3
|
||||
2 4
|
||||
3 5
|
||||
connection slave;
|
||||
select * from t1;
|
||||
id last_id
|
||||
1 0
|
||||
2 1
|
||||
3 2
|
||||
4 1
|
||||
5 4
|
||||
6 3
|
||||
select * from t2;
|
||||
id last_id
|
||||
1 3
|
||||
2 4
|
||||
3 5
|
||||
connection master;
|
||||
drop function bug15728;
|
||||
drop function bug15728_insert;
|
||||
drop table t1,t2;
|
||||
drop procedure foo;
|
||||
create table t1 (n int primary key auto_increment not null,
|
||||
b int, unique(b)) engine=tokudb;
|
||||
set sql_log_bin=0;
|
||||
insert into t1 values(null,100);
|
||||
replace into t1 values(null,50),(null,100),(null,150);
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 50
|
||||
3 100
|
||||
4 150
|
||||
truncate table t1;
|
||||
set sql_log_bin=1;
|
||||
insert into t1 values(null,100);
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 100
|
||||
connection slave;
|
||||
insert into t1 values(null,200),(null,300);
|
||||
delete from t1 where b <> 100;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 100
|
||||
connection master;
|
||||
replace into t1 values(null,100),(null,350);
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
3 350
|
||||
connection slave;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
3 350
|
||||
connection master;
|
||||
insert into t1 values (NULL,400),(3,500),(NULL,600) on duplicate key UPDATE n=1000;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
4 400
|
||||
1000 350
|
||||
1001 600
|
||||
connection slave;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
4 400
|
||||
1000 350
|
||||
1001 600
|
||||
connection master;
|
||||
drop table t1;
|
||||
create table t1 (n int primary key auto_increment not null,
|
||||
b int, unique(b)) engine=tokudb;
|
||||
insert into t1 values(null,100);
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 100
|
||||
connection slave;
|
||||
insert into t1 values(null,200),(null,300);
|
||||
delete from t1 where b <> 100;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 100
|
||||
connection master;
|
||||
insert into t1 values(null,100),(null,350) on duplicate key update n=2;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
3 350
|
||||
connection slave;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
2 100
|
||||
3 350
|
||||
connection master;
|
||||
drop table t1;
|
||||
connection slave;
|
||||
connection master;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY AUTO_INCREMENT, b INT,
|
||||
UNIQUE(b)) ENGINE=tokudb;
|
||||
INSERT INTO t1(b) VALUES(1),(1),(2) ON DUPLICATE KEY UPDATE t1.b=10;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 10
|
||||
2 2
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 10
|
||||
2 2
|
||||
connection master;
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
id bigint(20) unsigned NOT NULL auto_increment,
|
||||
field_1 int(10) unsigned NOT NULL,
|
||||
field_2 varchar(255) NOT NULL,
|
||||
field_3 varchar(255) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY field_1 (field_1, field_2)
|
||||
) ENGINE=tokudb;
|
||||
CREATE TABLE t2 (
|
||||
field_a int(10) unsigned NOT NULL,
|
||||
field_b varchar(255) NOT NULL,
|
||||
field_c varchar(255) NOT NULL
|
||||
) ENGINE=tokudb;
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (1, 'a', '1a');
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (2, 'b', '2b');
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (3, 'c', '3c');
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (4, 'd', '4d');
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (5, 'e', '5e');
|
||||
INSERT INTO t1 (field_1, field_2, field_3)
|
||||
SELECT t2.field_a, t2.field_b, t2.field_c
|
||||
FROM t2
|
||||
ON DUPLICATE KEY UPDATE
|
||||
t1.field_3 = t2.field_c;
|
||||
INSERT INTO t2 (field_a, field_b, field_c) VALUES (6, 'f', '6f');
|
||||
INSERT INTO t1 (field_1, field_2, field_3)
|
||||
SELECT t2.field_a, t2.field_b, t2.field_c
|
||||
FROM t2
|
||||
ON DUPLICATE KEY UPDATE
|
||||
t1.field_3 = t2.field_c;
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
id field_1 field_2 field_3
|
||||
1 1 a 1a
|
||||
2 2 b 2b
|
||||
3 3 c 3c
|
||||
4 4 d 4d
|
||||
5 5 e 5e
|
||||
8 6 f 6f
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
id field_1 field_2 field_3
|
||||
1 1 a 1a
|
||||
2 2 b 2b
|
||||
3 3 c 3c
|
||||
4 4 d 4d
|
||||
5 5 e 5e
|
||||
8 6 f 6f
|
||||
connection master;
|
||||
drop table t1, t2;
|
||||
connection master;
|
||||
DROP PROCEDURE IF EXISTS p1;
|
||||
DROP TABLE IF EXISTS t1, t2;
|
||||
SELECT LAST_INSERT_ID(0);
|
||||
LAST_INSERT_ID(0)
|
||||
0
|
||||
CREATE TABLE t1 (
|
||||
id INT NOT NULL DEFAULT 0,
|
||||
last_id INT,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=tokudb;
|
||||
CREATE TABLE t2 (
|
||||
id INT NOT NULL AUTO_INCREMENT,
|
||||
last_id INT,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=tokudb;
|
||||
CREATE PROCEDURE p1()
|
||||
BEGIN
|
||||
INSERT INTO t2 (last_id) VALUES (LAST_INSERT_ID());
|
||||
INSERT INTO t1 (last_id) VALUES (LAST_INSERT_ID());
|
||||
END|
|
||||
CALL p1();
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
id last_id
|
||||
0 1
|
||||
SELECT * FROM t2 ORDER BY id;
|
||||
id last_id
|
||||
1 0
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
id last_id
|
||||
0 1
|
||||
SELECT * FROM t2 ORDER BY id;
|
||||
id last_id
|
||||
1 0
|
||||
connection master;
|
||||
DROP PROCEDURE p1;
|
||||
DROP TABLE t1, t2;
|
||||
DROP PROCEDURE IF EXISTS p1;
|
||||
DROP FUNCTION IF EXISTS f1;
|
||||
DROP FUNCTION IF EXISTS f2;
|
||||
DROP FUNCTION IF EXISTS f3;
|
||||
DROP TABLE IF EXISTS t1, t2;
|
||||
CREATE TABLE t1 (
|
||||
i INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
j INT DEFAULT 0
|
||||
) ENGINE=tokudb;
|
||||
CREATE TABLE t2 (i INT) ENGINE=tokudb;
|
||||
CREATE PROCEDURE p1()
|
||||
BEGIN
|
||||
INSERT INTO t1 (i) VALUES (NULL);
|
||||
INSERT INTO t2 (i) VALUES (LAST_INSERT_ID());
|
||||
INSERT INTO t1 (i) VALUES (NULL), (NULL);
|
||||
INSERT INTO t2 (i) VALUES (LAST_INSERT_ID());
|
||||
END |
|
||||
CREATE FUNCTION f1() RETURNS INT MODIFIES SQL DATA
|
||||
BEGIN
|
||||
INSERT INTO t1 (i) VALUES (NULL);
|
||||
INSERT INTO t2 (i) VALUES (LAST_INSERT_ID());
|
||||
INSERT INTO t1 (i) VALUES (NULL), (NULL);
|
||||
INSERT INTO t2 (i) VALUES (LAST_INSERT_ID());
|
||||
RETURN 0;
|
||||
END |
|
||||
CREATE FUNCTION f2() RETURNS INT NOT DETERMINISTIC
|
||||
RETURN LAST_INSERT_ID() |
|
||||
CREATE FUNCTION f3() RETURNS INT MODIFIES SQL DATA
|
||||
BEGIN
|
||||
INSERT INTO t2 (i) VALUES (LAST_INSERT_ID());
|
||||
RETURN 0;
|
||||
END |
|
||||
INSERT INTO t1 VALUES (NULL, -1);
|
||||
CALL p1();
|
||||
SELECT f1();
|
||||
f1()
|
||||
0
|
||||
INSERT INTO t1 VALUES (NULL, f2()), (NULL, LAST_INSERT_ID()),
|
||||
(NULL, LAST_INSERT_ID()), (NULL, f2()), (NULL, f2());
|
||||
INSERT INTO t1 VALUES (NULL, f2());
|
||||
INSERT INTO t1 VALUES (NULL, 0), (NULL, LAST_INSERT_ID());
|
||||
UPDATE t1 SET j= -1 WHERE i IS NULL;
|
||||
INSERT INTO t1 (i) VALUES (NULL);
|
||||
connection master1;
|
||||
INSERT INTO t1 (i) VALUES (NULL);
|
||||
connection master;
|
||||
SELECT f3();
|
||||
f3()
|
||||
0
|
||||
SELECT * FROM t1 ORDER BY i;
|
||||
i j
|
||||
1 -1
|
||||
2 0
|
||||
3 0
|
||||
4 0
|
||||
5 0
|
||||
6 0
|
||||
7 0
|
||||
8 3
|
||||
9 3
|
||||
10 3
|
||||
11 3
|
||||
12 3
|
||||
13 8
|
||||
14 -1
|
||||
15 13
|
||||
16 0
|
||||
17 0
|
||||
SELECT * FROM t2 ORDER BY i;
|
||||
i
|
||||
2
|
||||
3
|
||||
5
|
||||
6
|
||||
16
|
||||
connection slave;
|
||||
SELECT * FROM t1;
|
||||
i j
|
||||
1 -1
|
||||
2 0
|
||||
3 0
|
||||
4 0
|
||||
5 0
|
||||
6 0
|
||||
7 0
|
||||
8 3
|
||||
9 3
|
||||
10 3
|
||||
11 3
|
||||
12 3
|
||||
13 8
|
||||
14 -1
|
||||
15 13
|
||||
16 0
|
||||
17 0
|
||||
SELECT * FROM t2;
|
||||
i
|
||||
2
|
||||
3
|
||||
5
|
||||
6
|
||||
16
|
||||
connection master;
|
||||
DROP PROCEDURE p1;
|
||||
DROP FUNCTION f1;
|
||||
DROP FUNCTION f2;
|
||||
DROP FUNCTION f3;
|
||||
DROP TABLE t1, t2;
|
||||
connection slave;
|
||||
#
|
||||
# End of 5.0 tests
|
||||
#
|
||||
connection master;
|
||||
create table t2 (
|
||||
id int not null auto_increment,
|
||||
last_id int,
|
||||
primary key (id)
|
||||
) engine=tokudb;
|
||||
connection master;
|
||||
truncate table t2;
|
||||
create table t1 (id tinyint primary key) engine=tokudb;
|
||||
create function insid() returns int
|
||||
begin
|
||||
insert into t2 (last_id) values (0);
|
||||
return 0;
|
||||
end|
|
||||
set sql_log_bin=0;
|
||||
insert into t2 (id) values(1),(2),(3);
|
||||
delete from t2;
|
||||
set sql_log_bin=1;
|
||||
select insid();
|
||||
insid()
|
||||
0
|
||||
set sql_log_bin=0;
|
||||
insert into t2 (id) values(5),(6),(7);
|
||||
delete from t2 where id>=5;
|
||||
set sql_log_bin=1;
|
||||
insert into t1 select insid();
|
||||
select * from t1 order by id;
|
||||
id
|
||||
0
|
||||
select * from t2 order by id;
|
||||
id last_id
|
||||
4 0
|
||||
8 0
|
||||
connection slave;
|
||||
select * from t1 order by id;
|
||||
id
|
||||
0
|
||||
select * from t2 order by id;
|
||||
id last_id
|
||||
4 0
|
||||
8 0
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop function insid;
|
||||
truncate table t2;
|
||||
create table t1 (n int primary key auto_increment not null,
|
||||
b int, unique(b)) engine=tokudb;
|
||||
create procedure foo()
|
||||
begin
|
||||
insert into t1 values(null,10);
|
||||
insert ignore into t1 values(null,10);
|
||||
insert ignore into t1 values(null,10);
|
||||
insert into t2 values(null,3);
|
||||
end|
|
||||
call foo();
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 10
|
||||
select * from t2 order by id;
|
||||
id last_id
|
||||
1 3
|
||||
connection slave;
|
||||
select * from t1 order by n;
|
||||
n b
|
||||
1 10
|
||||
select * from t2 order by id;
|
||||
id last_id
|
||||
1 3
|
||||
connection master;
|
||||
drop table t1, t2;
|
||||
drop procedure foo;
|
||||
SET @@global.concurrent_insert= @old_concurrent_insert;
|
||||
set @@session.sql_auto_is_null=default;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.");
|
||||
create table t1(a int auto_increment, primary key(a));
|
||||
create table t2(b int auto_increment, c int, primary key(b));
|
||||
insert into t1 values (1),(2),(3);
|
||||
insert into t1 values (null);
|
||||
insert into t2 values (null,last_insert_id());
|
||||
connection slave;
|
||||
select * from t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
1 4
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
create table t1(a int auto_increment, key(a)) engine=tokudb;
|
||||
create table t2(b int auto_increment, c int, key(b), foreign key(b) references t1(a)) engine=tokudb;
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
insert into t1 values (10);
|
||||
insert into t1 values (null),(null),(null);
|
||||
insert into t2 values (5,0);
|
||||
insert into t2 values (null,last_insert_id());
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
connection slave;
|
||||
select * from t1;
|
||||
a
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
select * from t2;
|
||||
b c
|
||||
5 0
|
||||
6 11
|
||||
connection master;
|
||||
drop table t2;
|
||||
drop table t1;
|
||||
create table t1(a int auto_increment, primary key(a));
|
||||
create table t2(b int auto_increment, c int, primary key(b));
|
||||
insert into t1 values (10);
|
||||
insert into t1 values (null),(null),(null);
|
||||
insert into t2 values (5,0);
|
||||
insert into t2 (c) select * from t1 ORDER BY a;
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
5 0
|
||||
6 10
|
||||
7 11
|
||||
8 12
|
||||
9 13
|
||||
connection slave;
|
||||
select * from t1 ORDER BY a;
|
||||
a
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
select * from t2 ORDER BY b;
|
||||
b c
|
||||
5 0
|
||||
6 10
|
||||
7 11
|
||||
8 12
|
||||
9 13
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
connection slave;
|
||||
connection master;
|
||||
SET TIMESTAMP=1000000000;
|
||||
CREATE TABLE t1 ( a INT UNIQUE );
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
INSERT INTO t1 VALUES (1),(1);
|
||||
Got one of the listed errors
|
||||
connection slave;
|
||||
connection master;
|
||||
drop table t1;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
|
||||
CREATE TABLE t1 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
CREATE TABLE t2 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
INSERT INTO t1 VALUES (NULL, 0);
|
||||
INSERT INTO t1 SELECT NULL, 0 FROM t1;
|
||||
INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 1
|
||||
UPDATE t1, t2 SET t1.b = t2.b WHERE t1.a = t2.a;
|
||||
connection slave;
|
||||
connection master;
|
||||
drop table t1, t2;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT');
|
||||
drop table if exists t1,t2;
|
||||
CREATE TABLE t1 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
CREATE TABLE t2 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
INSERT INTO t1 VALUES (NULL, 0);
|
||||
INSERT INTO t1 SELECT NULL, 0 FROM t1;
|
||||
INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 1
|
||||
UPDATE t1, t2 SET t1.b = (t2.b+4) WHERE t1.a = t2.a;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 4
|
||||
2 5
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 1
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 4
|
||||
2 5
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 1
|
||||
connection master;
|
||||
drop table t1,t2;
|
||||
connection slave;
|
||||
reset master;
|
||||
connection master;
|
||||
CREATE TABLE t1 ( a INT );
|
||||
INSERT INTO t1 VALUES (0);
|
||||
UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b;
|
||||
select * from t1;
|
||||
a
|
||||
3
|
||||
connection slave;
|
||||
connection slave;
|
||||
select * from t1;
|
||||
a
|
||||
3
|
||||
connection master;
|
||||
drop table t1;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
208
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_multi_update3.result
Normal file
208
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_multi_update3.result
Normal file
|
|
@ -0,0 +1,208 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
|
||||
|
||||
-------- Test for BUG#9361 --------
|
||||
CREATE TABLE t1 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
CREATE TABLE t2 (
|
||||
a int unsigned not null auto_increment primary key,
|
||||
b int unsigned
|
||||
) ENGINE=TokuDB;
|
||||
INSERT INTO t1 VALUES (NULL, 0);
|
||||
INSERT INTO t1 SELECT NULL, 0 FROM t1;
|
||||
INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 1
|
||||
UPDATE t2, (SELECT a FROM t1 ORDER BY a) AS t SET t2.b = t.a+5 ;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 6
|
||||
2 6
|
||||
connection slave;
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 0
|
||||
2 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 6
|
||||
2 6
|
||||
connection master;
|
||||
drop table t1,t2;
|
||||
|
||||
-------- Test 1 for BUG#9361 --------
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
CREATE TABLE t1 (
|
||||
a1 char(30),
|
||||
a2 int,
|
||||
a3 int,
|
||||
a4 char(30),
|
||||
a5 char(30)
|
||||
);
|
||||
CREATE TABLE t2 (
|
||||
b1 int,
|
||||
b2 char(30)
|
||||
);
|
||||
INSERT INTO t1 VALUES ('Yes', 1, NULL, 'foo', 'bar');
|
||||
INSERT INTO t2 VALUES (1, 'baz');
|
||||
UPDATE t1 a, t2
|
||||
SET a.a1 = 'No'
|
||||
WHERE a.a2 =
|
||||
(SELECT b1
|
||||
FROM t2
|
||||
WHERE b2 = 'baz')
|
||||
AND a.a3 IS NULL
|
||||
AND a.a4 = 'foo'
|
||||
AND a.a5 = 'bar';
|
||||
connection slave;
|
||||
connection slave;
|
||||
SELECT * FROM t1;
|
||||
a1 a2 a3 a4 a5
|
||||
No 1 NULL foo bar
|
||||
SELECT * FROM t2;
|
||||
b1 b2
|
||||
1 baz
|
||||
connection master;
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
-------- Test 2 for BUG#9361 --------
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
DROP TABLE IF EXISTS t3;
|
||||
CREATE TABLE t1 (
|
||||
i INT,
|
||||
j INT,
|
||||
x INT,
|
||||
y INT,
|
||||
z INT
|
||||
);
|
||||
CREATE TABLE t2 (
|
||||
i INT,
|
||||
k INT,
|
||||
x INT,
|
||||
y INT,
|
||||
z INT
|
||||
);
|
||||
CREATE TABLE t3 (
|
||||
j INT,
|
||||
k INT,
|
||||
x INT,
|
||||
y INT,
|
||||
z INT
|
||||
);
|
||||
INSERT INTO t1 VALUES ( 1, 2,13,14,15);
|
||||
INSERT INTO t2 VALUES ( 1, 3,23,24,25);
|
||||
INSERT INTO t3 VALUES ( 2, 3, 1,34,35), ( 2, 3, 1,34,36);
|
||||
UPDATE t1 AS a
|
||||
INNER JOIN t2 AS b
|
||||
ON a.i = b.i
|
||||
INNER JOIN t3 AS c
|
||||
ON a.j = c.j AND b.k = c.k
|
||||
SET a.x = b.x,
|
||||
a.y = b.y,
|
||||
a.z = (
|
||||
SELECT sum(z)
|
||||
FROM t3
|
||||
WHERE y = 34
|
||||
)
|
||||
WHERE b.x = 23;
|
||||
connection slave;
|
||||
connection slave;
|
||||
SELECT * FROM t1;
|
||||
i j x y z
|
||||
1 2 23 24 71
|
||||
connection master;
|
||||
DROP TABLE t1, t2, t3;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'test.t1'
|
||||
DROP TABLE IF EXISTS t2;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'test.t2'
|
||||
CREATE TABLE t1 (
|
||||
idp int(11) NOT NULL default '0',
|
||||
idpro int(11) default NULL,
|
||||
price decimal(19,4) default NULL,
|
||||
PRIMARY KEY (idp)
|
||||
);
|
||||
CREATE TABLE t2 (
|
||||
idpro int(11) NOT NULL default '0',
|
||||
price decimal(19,4) default NULL,
|
||||
nbprice int(11) default NULL,
|
||||
PRIMARY KEY (idpro)
|
||||
);
|
||||
INSERT INTO t1 VALUES
|
||||
(1,1,'3.0000'),
|
||||
(2,2,'1.0000'),
|
||||
(3,1,'1.0000'),
|
||||
(4,1,'4.0000'),
|
||||
(5,3,'2.0000'),
|
||||
(6,2,'4.0000');
|
||||
INSERT INTO t2 VALUES
|
||||
(1,'0.0000',0),
|
||||
(2,'0.0000',0),
|
||||
(3,'0.0000',0);
|
||||
update
|
||||
t2
|
||||
join
|
||||
( select idpro, min(price) as min_price, count(*) as nbr_price
|
||||
from t1
|
||||
where idpro>0 and price>0
|
||||
group by idpro
|
||||
) as table_price
|
||||
on t2.idpro = table_price.idpro
|
||||
set t2.price = table_price.min_price,
|
||||
t2.nbprice = table_price.nbr_price;
|
||||
select "-- MASTER AFTER JOIN --" as "";
|
||||
|
||||
-- MASTER AFTER JOIN --
|
||||
select * from t1;
|
||||
idp idpro price
|
||||
1 1 3.0000
|
||||
2 2 1.0000
|
||||
3 1 1.0000
|
||||
4 1 4.0000
|
||||
5 3 2.0000
|
||||
6 2 4.0000
|
||||
select * from t2;
|
||||
idpro price nbprice
|
||||
1 1.0000 3
|
||||
2 1.0000 2
|
||||
3 2.0000 1
|
||||
connection slave;
|
||||
select "-- SLAVE AFTER JOIN --" as "";
|
||||
|
||||
-- SLAVE AFTER JOIN --
|
||||
select * from t1;
|
||||
idp idpro price
|
||||
1 1 3.0000
|
||||
2 2 1.0000
|
||||
3 1 1.0000
|
||||
4 1 4.0000
|
||||
5 3 2.0000
|
||||
6 2 4.0000
|
||||
select * from t2;
|
||||
idpro price nbprice
|
||||
1 1.0000 3
|
||||
2 1.0000 2
|
||||
3 2.0000 1
|
||||
connection master;
|
||||
DROP TABLE t1, t2;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
include/master-slave.inc
|
||||
Warnings:
|
||||
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
||||
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
||||
[connection master]
|
||||
call mtr.add_suppression(".*read free replication is disabled for TokuDB table.*continue with rows lookup");
|
||||
CREATE TABLE t1 (id int(11) NOT NULL, pid int(11), PRIMARY KEY (id)) ENGINE=TokuDB
|
||||
PARTITION BY RANGE (id)
|
||||
(PARTITION p_1 VALUES LESS THAN (10) ENGINE = TokuDB,
|
||||
PARTITION p_2 VALUES LESS THAN (20) ENGINE = TokuDB,
|
||||
PARTITION p_all VALUES LESS THAN MAXVALUE ENGINE = TokuDB);
|
||||
insert into t1 values (1, 1), (2, 2), (3, 3), (11, 11), (12, 12), (13, 13);
|
||||
CREATE TABLE t2 (id int(11) NOT NULL, pid int(11), key idx_1(id)) ENGINE=TokuDB
|
||||
PARTITION BY RANGE (id)
|
||||
(PARTITION p_1 VALUES LESS THAN (10) ENGINE = TokuDB,
|
||||
PARTITION p_2 VALUES LESS THAN (20) ENGINE = TokuDB,
|
||||
PARTITION p_all VALUES LESS THAN MAXVALUE ENGINE = TokuDB);
|
||||
insert into t2 values (1, 1), (2, 2), (3, 3), (11, 11), (12, 12), (13, 13);
|
||||
include/stop_slave.inc
|
||||
set global debug= "+d,tokudb_crash_if_rpl_looks_up_row,tokudb_crash_if_rpl_does_uniqueness_check";
|
||||
include/start_slave.inc
|
||||
insert into t1 values(21, 21);
|
||||
delete from t1 where id = 11;
|
||||
update t1 set pid = 2 where id = 1;
|
||||
include/diff_tables.inc [master:test.t1, slave:test.t1]
|
||||
insert into t2 values(21, 21);
|
||||
delete from t2 where id = 11;
|
||||
update t2 set pid = 2 where id = 1;
|
||||
include/diff_tables.inc [master:test.t2, slave:test.t2]
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
include/stop_slave.inc
|
||||
set global debug= "-d,tokudb_crash_if_rpl_looks_up_row,tokudb_crash_if_rpl_does_uniqueness_check";
|
||||
set global debug= @saved_debug;
|
||||
include/start_slave.inc
|
||||
include/rpl_end.inc
|
||||
2183
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_crash_safe.result
Normal file
2183
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_crash_safe.result
Normal file
File diff suppressed because it is too large
Load diff
4739
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_blobs.result
Normal file
4739
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_blobs.result
Normal file
File diff suppressed because it is too large
Load diff
3681
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_full.result
Normal file
3681
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_full.result
Normal file
File diff suppressed because it is too large
Load diff
3522
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_min.result
Normal file
3522
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_min.result
Normal file
File diff suppressed because it is too large
Load diff
3522
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_noblob.result
Normal file
3522
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_eng_noblob.result
Normal file
File diff suppressed because it is too large
Load diff
3505
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_full.result
Normal file
3505
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_full.result
Normal file
File diff suppressed because it is too large
Load diff
3530
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_min.result
Normal file
3530
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_min.result
Normal file
File diff suppressed because it is too large
Load diff
3530
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_noblob.result
Normal file
3530
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_img_idx_noblob.result
Normal file
File diff suppressed because it is too large
Load diff
315
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_log.result
Normal file
315
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_log.result
Normal file
|
|
@ -0,0 +1,315 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
include/wait_for_slave_to_stop.inc
|
||||
reset master;
|
||||
reset slave;
|
||||
start slave;
|
||||
include/wait_for_slave_to_start.inc
|
||||
connection slave;
|
||||
set @save_slave_ddl_exec_mode=@@global.slave_ddl_exec_mode;
|
||||
set @@global.slave_ddl_exec_mode=STRICT;
|
||||
connection master;
|
||||
create table t1(n int not null auto_increment primary key)ENGINE=TokuDB;
|
||||
insert into t1 values (NULL);
|
||||
drop table t1;
|
||||
create table t1 (word char(20) not null)ENGINE=TokuDB;
|
||||
load data infile 'LOAD_FILE' into table t1 ignore 1 lines;
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
69
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # insert into t1 values (NULL)
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # load data infile '../../std_data/words.dat' into table t1 ignore 1 lines
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # insert into t1 values (NULL)
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
flush logs;
|
||||
create table t3 (a int)ENGINE=TokuDB;
|
||||
connection master;
|
||||
select * from t1 order by 1 asc;
|
||||
word
|
||||
Aarhus
|
||||
Aaron
|
||||
Aaron
|
||||
Ababa
|
||||
Ababa
|
||||
aback
|
||||
aback
|
||||
abaft
|
||||
abaft
|
||||
abandon
|
||||
abandon
|
||||
abandoned
|
||||
abandoned
|
||||
abandoning
|
||||
abandoning
|
||||
abandonment
|
||||
abandonment
|
||||
abandons
|
||||
abandons
|
||||
abase
|
||||
abased
|
||||
abasement
|
||||
abasements
|
||||
abases
|
||||
abash
|
||||
abashed
|
||||
abashes
|
||||
abashing
|
||||
abasing
|
||||
abate
|
||||
abated
|
||||
abatement
|
||||
abatements
|
||||
abater
|
||||
abates
|
||||
abating
|
||||
Abba
|
||||
abbe
|
||||
abbey
|
||||
abbeys
|
||||
abbot
|
||||
abbots
|
||||
Abbott
|
||||
abbreviate
|
||||
abbreviated
|
||||
abbreviates
|
||||
abbreviating
|
||||
abbreviation
|
||||
abbreviations
|
||||
Abby
|
||||
abdomen
|
||||
abdomens
|
||||
abdominal
|
||||
abduct
|
||||
abducted
|
||||
abduction
|
||||
abductions
|
||||
abductor
|
||||
abductors
|
||||
abducts
|
||||
Abe
|
||||
abed
|
||||
Abel
|
||||
Abelian
|
||||
Abelson
|
||||
Aberdeen
|
||||
Abernathy
|
||||
aberrant
|
||||
aberration
|
||||
connection slave;
|
||||
select * from t1 order by 1 asc;
|
||||
word
|
||||
Aarhus
|
||||
Aaron
|
||||
Aaron
|
||||
Ababa
|
||||
Ababa
|
||||
aback
|
||||
aback
|
||||
abaft
|
||||
abaft
|
||||
abandon
|
||||
abandon
|
||||
abandoned
|
||||
abandoned
|
||||
abandoning
|
||||
abandoning
|
||||
abandonment
|
||||
abandonment
|
||||
abandons
|
||||
abandons
|
||||
abase
|
||||
abased
|
||||
abasement
|
||||
abasements
|
||||
abases
|
||||
abash
|
||||
abashed
|
||||
abashes
|
||||
abashing
|
||||
abasing
|
||||
abate
|
||||
abated
|
||||
abatement
|
||||
abatements
|
||||
abater
|
||||
abates
|
||||
abating
|
||||
Abba
|
||||
abbe
|
||||
abbey
|
||||
abbeys
|
||||
abbot
|
||||
abbots
|
||||
Abbott
|
||||
abbreviate
|
||||
abbreviated
|
||||
abbreviates
|
||||
abbreviating
|
||||
abbreviation
|
||||
abbreviations
|
||||
Abby
|
||||
abdomen
|
||||
abdomens
|
||||
abdominal
|
||||
abduct
|
||||
abducted
|
||||
abduction
|
||||
abductions
|
||||
abductor
|
||||
abductors
|
||||
abducts
|
||||
Abe
|
||||
abed
|
||||
Abel
|
||||
Abelian
|
||||
Abelson
|
||||
Aberdeen
|
||||
Abernathy
|
||||
aberrant
|
||||
aberration
|
||||
flush logs;
|
||||
include/stop_slave.inc
|
||||
include/start_slave.inc
|
||||
connection master;
|
||||
create table t2 (n int)ENGINE=TokuDB;
|
||||
insert into t2 values (1);
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # insert into t1 values (NULL)
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # load data infile '../../std_data/words.dat' into table t1 ignore 1 lines
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000002 # Binlog_checkpoint # # master-bin.000002
|
||||
master-bin.000002 # Gtid # # GTID #-#-#
|
||||
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=TokuDB
|
||||
master-bin.000002 # Gtid # # GTID #-#-#
|
||||
master-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=TokuDB
|
||||
master-bin.000002 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000002 # Annotate_rows # # insert into t2 values (1)
|
||||
master-bin.000002 # Table_map # # table_id: # (test.t2)
|
||||
master-bin.000002 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000002 # Xid # # COMMIT /* XID */
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
master-bin.000001 #
|
||||
master-bin.000002 #
|
||||
connection slave;
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
slave-bin.000001 #
|
||||
slave-bin.000002 #
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000001 # Annotate_rows # # insert into t1 values (NULL)
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Xid # # COMMIT /* XID */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000001 # Annotate_rows # # load data infile '../../std_data/words.dat' into table t1 ignore 1 lines
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Xid # # COMMIT /* XID */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=TokuDB
|
||||
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000002 # Binlog_checkpoint # # slave-bin.000002
|
||||
slave-bin.000002 # Gtid # # GTID #-#-#
|
||||
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=TokuDB
|
||||
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000002 # Annotate_rows # # insert into t2 values (1)
|
||||
slave-bin.000002 # Table_map # # table_id: # (test.t2)
|
||||
slave-bin.000002 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000002 # Xid # # COMMIT /* XID */
|
||||
include/check_slave_is_running.inc
|
||||
show binlog events in 'slave-bin.000005' from 4;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
include/rpl_reset.inc
|
||||
connection master;
|
||||
create table t1(a int auto_increment primary key, b int);
|
||||
insert into t1 values (NULL, 1);
|
||||
set insert_id=5;
|
||||
insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id());
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(a int auto_increment primary key, b int)
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # insert into t1 values (NULL, 1)
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id())
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
select * from t1;
|
||||
a b
|
||||
1 1
|
||||
5 1
|
||||
6 1
|
||||
drop table t1;
|
||||
connection slave;
|
||||
set @@global.slave_ddl_exec_mode=@save_slave_ddl_exec_mode;
|
||||
connection master;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
include/master-slave.inc
|
||||
Warnings:
|
||||
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
||||
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
||||
[connection master]
|
||||
******** [ MASTER ] ********
|
||||
CREATE DATABASE BUG_37656;
|
||||
use BUG_37656;
|
||||
show databases like 'BUG_37656';
|
||||
Database (BUG_37656)
|
||||
BUG_37656
|
||||
******** [ SLAVE ] ********
|
||||
show databases like 'bug_37656';
|
||||
Database (bug_37656)
|
||||
bug_37656
|
||||
******** [ MASTER ] ********
|
||||
CREATE TABLE T1 (a int);
|
||||
CREATE TABLE T2 (b int) ENGINE=TokuDB;
|
||||
CREATE TABLE T3 (txt TEXT);
|
||||
show tables;
|
||||
Tables_in_BUG_37656
|
||||
T1
|
||||
T2
|
||||
T3
|
||||
******** [ SLAVE ] ********
|
||||
use bug_37656;
|
||||
show tables;
|
||||
Tables_in_bug_37656
|
||||
t2
|
||||
t3
|
||||
CREATE TABLE t1 (a INT);
|
||||
******** [ MASTER ] ********
|
||||
use BUG_37656;
|
||||
INSERT INTO T1 VALUES (1);
|
||||
INSERT INTO T2 VALUES (1);
|
||||
use test;
|
||||
INSERT INTO BUG_37656.T1 VALUES (2);
|
||||
INSERT INTO BUG_37656.T2 VALUES (2);
|
||||
LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE BUG_37656.T3;
|
||||
******** [ SLAVE ] ********
|
||||
include/diff_tables.inc [master:BUG_37656.T2, slave:bug_37656.t2]
|
||||
include/diff_tables.inc [master:BUG_37656.T3, slave:bug_37656.t3]
|
||||
******** [ MASTER ] ********
|
||||
DROP DATABASE BUG_37656;
|
||||
include/rpl_reset.inc
|
||||
CREATE DATABASE B50653;
|
||||
USE B50653;
|
||||
CREATE PROCEDURE b50653_proc() BEGIN SELECT 1; END;
|
||||
DROP PROCEDURE b50653_proc;
|
||||
DROP DATABASE B50653;
|
||||
include/rpl_end.inc
|
||||
66
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_sp003.result
Normal file
66
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_sp003.result
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection master;
|
||||
DROP PROCEDURE IF EXISTS test.p1;
|
||||
DROP PROCEDURE IF EXISTS test.p2;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=TOKUDB;
|
||||
CREATE PROCEDURE test.p1()
|
||||
BEGIN
|
||||
INSERT INTO test.t1 VALUES (4);
|
||||
SELECT get_lock("test", 100);
|
||||
UPDATE test.t1 set a=a+4 WHERE a=4;
|
||||
END|
|
||||
CREATE PROCEDURE test.p2()
|
||||
BEGIN
|
||||
UPDATE test.t1 SET a=a+1;
|
||||
END|
|
||||
SELECT get_lock("test", 200);
|
||||
get_lock("test", 200)
|
||||
1
|
||||
connection master1;
|
||||
CALL test.p1();
|
||||
connection master;
|
||||
CALL test.p2();
|
||||
SELECT release_lock("test");
|
||||
release_lock("test")
|
||||
1
|
||||
connection master1;
|
||||
get_lock("test", 100)
|
||||
1
|
||||
SELECT release_lock("test");
|
||||
release_lock("test")
|
||||
1
|
||||
connection master;
|
||||
SELECT * FROM test.t1;
|
||||
a
|
||||
5
|
||||
connection slave;
|
||||
connection slave;
|
||||
SELECT * FROM test.t1;
|
||||
a
|
||||
5
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=TOKUDB;
|
||||
CALL test.p2();
|
||||
CALL test.p1();
|
||||
get_lock("test", 100)
|
||||
1
|
||||
SELECT release_lock("test");
|
||||
release_lock("test")
|
||||
1
|
||||
SELECT * FROM test.t1;
|
||||
a
|
||||
8
|
||||
connection slave;
|
||||
connection slave;
|
||||
SELECT * FROM test.t1;
|
||||
a
|
||||
8
|
||||
connection master;
|
||||
DROP PROCEDURE IF EXISTS test.p1;
|
||||
DROP PROCEDURE IF EXISTS test.p2;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
46
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_sp006.result
Normal file
46
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_row_sp006.result
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
DROP PROCEDURE IF EXISTS p1;
|
||||
DROP PROCEDURE IF EXISTS p2;
|
||||
CREATE TABLE IF NOT EXISTS t1(name CHAR(16), birth DATE,PRIMARY KEY(name))ENGINE=TokuDB;
|
||||
CREATE TABLE IF NOT EXISTS t2(name CHAR(16), age INT ,PRIMARY KEY(name))ENGINE=TokuDB;
|
||||
CREATE PROCEDURE p1()
|
||||
BEGIN
|
||||
DECLARE done INT DEFAULT 0;
|
||||
DECLARE spa CHAR(16);
|
||||
DECLARE spb INT;
|
||||
DECLARE cur1 CURSOR FOR SELECT name,
|
||||
(YEAR(CURDATE())-YEAR(birth))-(RIGHT(CURDATE(),5)<RIGHT(birth,5))
|
||||
FROM t1;
|
||||
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;
|
||||
OPEN cur1;
|
||||
SET AUTOCOMMIT=0;
|
||||
REPEAT
|
||||
FETCH cur1 INTO spa, spb;
|
||||
IF NOT done THEN
|
||||
START TRANSACTION;
|
||||
INSERT INTO t2 VALUES (spa,spb);
|
||||
COMMIT;
|
||||
END IF;
|
||||
UNTIL done END REPEAT;
|
||||
SET AUTOCOMMIT=1;
|
||||
CLOSE cur1;
|
||||
END|
|
||||
CREATE PROCEDURE p2()
|
||||
BEGIN
|
||||
INSERT INTO t1 VALUES ('MySQL','1993-02-04'),('ROCKS', '1990-08-27'),('Texas', '1999-03-30'),('kyle','2005-1-1');
|
||||
END|
|
||||
CALL p2();
|
||||
connection slave;
|
||||
connection master;
|
||||
CALL p1();
|
||||
connection slave;
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP PROCEDURE p1;
|
||||
DROP PROCEDURE p2;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection master;
|
||||
DROP TRIGGER test.t1_bi_t2;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
DROP TABLE IF EXISTS test.t2;
|
||||
CREATE TABLE test.t1 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d FLOAT, PRIMARY KEY(n))ENGINE=TOKUDB;
|
||||
CREATE TABLE test.t2 (n MEDIUMINT NOT NULL, f FLOAT, PRIMARY KEY(n))ENGINE=TOKUDB;
|
||||
CREATE TRIGGER test.t1_bi_t2 BEFORE INSERT ON test.t2 FOR EACH ROW INSERT INTO test.t1 VALUES (NULL, 1.234)//
|
||||
INSERT INTO test.t2 VALUES (1, 0.0);
|
||||
INSERT INTO test.t2 VALUES (1, 0.0);
|
||||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
||||
select * from test.t1;
|
||||
n d
|
||||
1 1.234
|
||||
select * from test.t2;
|
||||
n f
|
||||
1 0
|
||||
connection slave;
|
||||
connection slave;
|
||||
select * from test.t1;
|
||||
n d
|
||||
1 1.234
|
||||
select * from test.t2;
|
||||
n f
|
||||
1 0
|
||||
connection master;
|
||||
DROP TRIGGER test.t1_bi_t2;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE test.t2;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
304
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_stm_log.result
Normal file
304
storage/tokudb/mysql-test/rpl/r/rpl_tokudb_stm_log.result
Normal file
|
|
@ -0,0 +1,304 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
include/wait_for_slave_to_stop.inc
|
||||
reset master;
|
||||
reset slave;
|
||||
start slave;
|
||||
include/wait_for_slave_to_start.inc
|
||||
connection slave;
|
||||
set @save_slave_ddl_exec_mode=@@global.slave_ddl_exec_mode;
|
||||
set @@global.slave_ddl_exec_mode=STRICT;
|
||||
connection master;
|
||||
create table t1(n int not null auto_increment primary key)ENGINE=TokuDB;
|
||||
insert into t1 values (NULL);
|
||||
drop table t1;
|
||||
create table t1 (word char(20) not null)ENGINE=TokuDB;
|
||||
load data infile 'LOAD_FILE' into table t1 ignore 1 lines;
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
69
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Intvar # # INSERT_ID=1
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
|
||||
master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES (`word`) ;file_id=#
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Intvar # # INSERT_ID=1
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
flush logs;
|
||||
create table t3 (a int)ENGINE=TokuDB;
|
||||
connection master;
|
||||
select * from t1 order by 1 asc;
|
||||
word
|
||||
Aarhus
|
||||
Aaron
|
||||
Aaron
|
||||
Ababa
|
||||
Ababa
|
||||
aback
|
||||
aback
|
||||
abaft
|
||||
abaft
|
||||
abandon
|
||||
abandon
|
||||
abandoned
|
||||
abandoned
|
||||
abandoning
|
||||
abandoning
|
||||
abandonment
|
||||
abandonment
|
||||
abandons
|
||||
abandons
|
||||
abase
|
||||
abased
|
||||
abasement
|
||||
abasements
|
||||
abases
|
||||
abash
|
||||
abashed
|
||||
abashes
|
||||
abashing
|
||||
abasing
|
||||
abate
|
||||
abated
|
||||
abatement
|
||||
abatements
|
||||
abater
|
||||
abates
|
||||
abating
|
||||
Abba
|
||||
abbe
|
||||
abbey
|
||||
abbeys
|
||||
abbot
|
||||
abbots
|
||||
Abbott
|
||||
abbreviate
|
||||
abbreviated
|
||||
abbreviates
|
||||
abbreviating
|
||||
abbreviation
|
||||
abbreviations
|
||||
Abby
|
||||
abdomen
|
||||
abdomens
|
||||
abdominal
|
||||
abduct
|
||||
abducted
|
||||
abduction
|
||||
abductions
|
||||
abductor
|
||||
abductors
|
||||
abducts
|
||||
Abe
|
||||
abed
|
||||
Abel
|
||||
Abelian
|
||||
Abelson
|
||||
Aberdeen
|
||||
Abernathy
|
||||
aberrant
|
||||
aberration
|
||||
connection slave;
|
||||
select * from t1 order by 1 asc;
|
||||
word
|
||||
Aarhus
|
||||
Aaron
|
||||
Aaron
|
||||
Ababa
|
||||
Ababa
|
||||
aback
|
||||
aback
|
||||
abaft
|
||||
abaft
|
||||
abandon
|
||||
abandon
|
||||
abandoned
|
||||
abandoned
|
||||
abandoning
|
||||
abandoning
|
||||
abandonment
|
||||
abandonment
|
||||
abandons
|
||||
abandons
|
||||
abase
|
||||
abased
|
||||
abasement
|
||||
abasements
|
||||
abases
|
||||
abash
|
||||
abashed
|
||||
abashes
|
||||
abashing
|
||||
abasing
|
||||
abate
|
||||
abated
|
||||
abatement
|
||||
abatements
|
||||
abater
|
||||
abates
|
||||
abating
|
||||
Abba
|
||||
abbe
|
||||
abbey
|
||||
abbeys
|
||||
abbot
|
||||
abbots
|
||||
Abbott
|
||||
abbreviate
|
||||
abbreviated
|
||||
abbreviates
|
||||
abbreviating
|
||||
abbreviation
|
||||
abbreviations
|
||||
Abby
|
||||
abdomen
|
||||
abdomens
|
||||
abdominal
|
||||
abduct
|
||||
abducted
|
||||
abduction
|
||||
abductions
|
||||
abductor
|
||||
abductors
|
||||
abducts
|
||||
Abe
|
||||
abed
|
||||
Abel
|
||||
Abelian
|
||||
Abelson
|
||||
Aberdeen
|
||||
Abernathy
|
||||
aberrant
|
||||
aberration
|
||||
flush logs;
|
||||
include/stop_slave.inc
|
||||
include/start_slave.inc
|
||||
connection master;
|
||||
create table t2 (n int)ENGINE=TokuDB;
|
||||
insert into t2 values (1);
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Intvar # # INSERT_ID=1
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
|
||||
master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES (`word`) ;file_id=#
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000002 # Binlog_checkpoint # # master-bin.000002
|
||||
master-bin.000002 # Gtid # # GTID #-#-#
|
||||
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=TokuDB
|
||||
master-bin.000002 # Gtid # # GTID #-#-#
|
||||
master-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=TokuDB
|
||||
master-bin.000002 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000002 # Query # # use `test`; insert into t2 values (1)
|
||||
master-bin.000002 # Xid # # COMMIT /* XID */
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
master-bin.000001 #
|
||||
master-bin.000002 #
|
||||
connection slave;
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
slave-bin.000001 #
|
||||
slave-bin.000002 #
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=TokuDB
|
||||
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000001 # Intvar # # INSERT_ID=1
|
||||
slave-bin.000001 # Query # # use `test`; insert into t1 values (NULL)
|
||||
slave-bin.000001 # Xid # # COMMIT /* XID */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t1 (word char(20) not null)ENGINE=TokuDB
|
||||
slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
|
||||
slave-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE '../../tmp/SQL_LOAD-<SERVER UUID>-<MASTER server-id>-<file-id>.<extension>' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' IGNORE 1 LINES (`word`) ;file_id=#
|
||||
slave-bin.000001 # Xid # # COMMIT /* XID */
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=TokuDB
|
||||
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000002 # Binlog_checkpoint # # slave-bin.000002
|
||||
slave-bin.000002 # Gtid # # GTID #-#-#
|
||||
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=TokuDB
|
||||
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
|
||||
slave-bin.000002 # Query # # use `test`; insert into t2 values (1)
|
||||
slave-bin.000002 # Xid # # COMMIT /* XID */
|
||||
include/check_slave_is_running.inc
|
||||
show binlog events in 'slave-bin.000005' from 4;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
include/rpl_reset.inc
|
||||
connection master;
|
||||
create table t1(a int auto_increment primary key, b int);
|
||||
insert into t1 values (NULL, 1);
|
||||
set insert_id=5;
|
||||
insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id());
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; create table t1(a int auto_increment primary key, b int)
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Intvar # # INSERT_ID=1
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL, 1)
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Intvar # # LAST_INSERT_ID=1
|
||||
master-bin.000001 # Intvar # # INSERT_ID=5
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 values (NULL, last_insert_id()), (NULL, last_insert_id())
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
select * from t1;
|
||||
a b
|
||||
1 1
|
||||
5 1
|
||||
6 1
|
||||
drop table t1;
|
||||
connection slave;
|
||||
set @@global.slave_ddl_exec_mode=@save_slave_ddl_exec_mode;
|
||||
connection master;
|
||||
include/rpl_end.inc
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,48 @@
|
|||
include/master-slave.inc
|
||||
Warnings:
|
||||
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
||||
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
||||
[connection master]
|
||||
******** [ MASTER ] ********
|
||||
CREATE DATABASE BUG_37656;
|
||||
use BUG_37656;
|
||||
show databases like 'BUG_37656';
|
||||
Database (BUG_37656)
|
||||
BUG_37656
|
||||
******** [ SLAVE ] ********
|
||||
show databases like 'bug_37656';
|
||||
Database (bug_37656)
|
||||
bug_37656
|
||||
******** [ MASTER ] ********
|
||||
CREATE TABLE T1 (a int);
|
||||
CREATE TABLE T2 (b int) ENGINE=TokuDB;
|
||||
CREATE TABLE T3 (txt TEXT);
|
||||
show tables;
|
||||
Tables_in_BUG_37656
|
||||
T1
|
||||
T2
|
||||
T3
|
||||
******** [ SLAVE ] ********
|
||||
use bug_37656;
|
||||
show tables;
|
||||
Tables_in_bug_37656
|
||||
t2
|
||||
t3
|
||||
CREATE TABLE t1 (a INT);
|
||||
******** [ MASTER ] ********
|
||||
use BUG_37656;
|
||||
INSERT INTO T1 VALUES (1);
|
||||
INSERT INTO T2 VALUES (1);
|
||||
LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE BUG_37656.T3;
|
||||
******** [ SLAVE ] ********
|
||||
include/diff_tables.inc [master:BUG_37656.T2, slave:bug_37656.t2]
|
||||
include/diff_tables.inc [master:BUG_37656.T3, slave:bug_37656.t3]
|
||||
******** [ MASTER ] ********
|
||||
DROP DATABASE BUG_37656;
|
||||
include/rpl_reset.inc
|
||||
CREATE DATABASE B50653;
|
||||
USE B50653;
|
||||
CREATE PROCEDURE b50653_proc() BEGIN SELECT 1; END;
|
||||
DROP PROCEDURE b50653_proc;
|
||||
DROP DATABASE B50653;
|
||||
include/rpl_end.inc
|
||||
|
|
@ -11,9 +11,9 @@
|
|||
# 3 - NULL --> NOT NULL ( sql-mode != STRICT and no failures)
|
||||
#
|
||||
#################################################################################
|
||||
--source include/master-slave.inc
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
let $engine=TokuDB;
|
||||
--source extra/rpl_tests/rpl_not_null.test
|
||||
|
|
|
|||
|
|
@ -1,5 +1,2 @@
|
|||
--read-only=ON
|
||||
--loose-tokudb-rpl-unique-checks-delay=10000
|
||||
--loose-tokudb-rpl-unique-checks=OFF
|
||||
--loose-tokudb-rpl-lookup-rows-delay=10000
|
||||
--loose-tokudb-rpl-lookup-rows=OFF
|
||||
--read-only=ON --loose-tokudb-rpl-unique-checks-delay=10000 --loose-tokudb-rpl-unique-checks=OFF --loose-tokudb-rpl-lookup-rows-delay=10000 --loose-tokudb-rpl-lookup-rows=OFF
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
--read-only=ON
|
||||
--loose-tokudb-rpl-unique-checks-delay=10000
|
||||
--loose-tokudb-rpl-unique-checks=OFF
|
||||
--loose-tokudb-rpl-lookup-rows-delay=10000
|
||||
--loose-tokudb-rpl-lookup-rows=OFF
|
||||
--read-only=ON --loose-tokudb-rpl-unique-checks-delay=10000 --loose-tokudb-rpl-unique-checks=OFF --loose-tokudb-rpl-lookup-rows-delay=10000 --loose-tokudb-rpl-lookup-rows=OFF
|
||||
|
|
|
|||
|
|
@ -42,15 +42,16 @@ update t set b=b+2 where a=1;
|
|||
update t set b=b+3 where a=4;
|
||||
update t set b=b+4 where a=3;
|
||||
update t set b=b+1 where 1<=a and a<=3;
|
||||
select unix_timestamp() into @tstart;
|
||||
--echo # select unix_timestamp() into @tstart;
|
||||
|
||||
# wait for the delete to finish on the slave
|
||||
connection master;
|
||||
sync_slave_with_master;
|
||||
# source include/sync_slave_sql_with_master.inc;
|
||||
connection master;
|
||||
select unix_timestamp() into @tend;
|
||||
#select @tend-@tstart <= 5; # assert no delay in the delete time
|
||||
--echo # Commented out for MariaDB
|
||||
--echo # select unix_timestamp() into @tend;
|
||||
--echo # select @tend-@tstart <= 5; # assert no delay in the delete time
|
||||
|
||||
connection slave;
|
||||
select * from t;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
--read-only=ON
|
||||
--loose-tokudb-rpl-unique-checks-delay=5000
|
||||
--loose-tokudb-rpl-unique-checks=OFF
|
||||
--read-only=ON --loose-tokudb-rpl-unique-checks-delay=5000 --loose-tokudb-rpl-unique-checks=OFF
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ connection master;
|
|||
# select @@autocommit;
|
||||
eval create table t (a bigint not null, primary key(a)) engine=$engine;
|
||||
# show create table t;
|
||||
select unix_timestamp() into @tstart;
|
||||
insert into t values (1);
|
||||
insert into t values (2),(3);
|
||||
insert into t values (4);
|
||||
|
|
@ -30,8 +29,7 @@ insert into t values (4);
|
|||
sync_slave_with_master;
|
||||
# source include/sync_slave_sql_with_master.inc;
|
||||
|
||||
#connection master;
|
||||
#select unix_timestamp()-@tstart;
|
||||
connection master;
|
||||
|
||||
connection slave;
|
||||
# insert into t values (5); # test read-only
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
--read-only=true --loose-tokudb-rpl-unique-checks=false --loose-tokudb-rpl-lookup-rows=false
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
# Test case for bug#1536663
|
||||
#
|
||||
# When read-free-replication is enabled for tokudb and there is no explicit
|
||||
# pk for replicated table there can be dublicated records in the table on
|
||||
# update operation.
|
||||
#
|
||||
# Consider this update operation:
|
||||
# UPDATE t SET a = a + 10 WHERE b = 'b';
|
||||
# The master does rows lookup and updates the rows which values correspond to
|
||||
# the condition. The update events are written to binary log with
|
||||
# rows values from the master. As rows lookup is forbidden for slave
|
||||
# the new rows are added instead of updating corresponding rows.
|
||||
#
|
||||
# Without the fix there will be several rows with b = 'b' in the table on slave
|
||||
# instead of one updated row.
|
||||
#
|
||||
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
call mtr.add_suppression("read free replication is disabled for tokudb table");
|
||||
|
||||
--connection master
|
||||
CREATE TABLE t (a int(11), b char(20)) ENGINE = TokuDB;
|
||||
INSERT INTO t (a, b) VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e');
|
||||
|
||||
--sync_slave_with_master
|
||||
--sorted_result
|
||||
SELECT * FROM t;
|
||||
|
||||
--let $i = 2
|
||||
--while($i) {
|
||||
--dec $i
|
||||
--connection master
|
||||
UPDATE t SET a = a + 10 WHERE b = 'b';
|
||||
--sorted_result
|
||||
SELECT * FROM t;
|
||||
--sync_slave_with_master
|
||||
--sorted_result
|
||||
SELECT * FROM t;
|
||||
}
|
||||
|
||||
--connection master
|
||||
DROP TABLE t;
|
||||
--sync_slave_with_master
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
-- source include/have_tokudb.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
connection slave;
|
||||
let $bit_field_special = ALL_LOSSY;
|
||||
let $type= 'TokuDB';
|
||||
let $extra_index= ;
|
||||
-- source extra/rpl_tests/rpl_row_basic.test
|
||||
let $type = 'TokuDB';
|
||||
let $extra_index = ;
|
||||
--source extra/rpl_tests/rpl_row_basic.test
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
source include/master-slave.inc;
|
||||
source include/have_tokudb.inc;
|
||||
source include/have_binlog_format_statement.inc;
|
||||
# gtids disabled because it tests DROP TEMPORARY inside a transaction
|
||||
|
||||
source extra/rpl_tests/rpl_tokudb.test;
|
||||
--source include/rpl_end.inc
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
-- source include/have_tokudb.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=tokudb;
|
||||
-- source extra/rpl_tests/rpl_commit_after_flush.test
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#################################
|
||||
# Wrapper for rpl_insert_id.test#
|
||||
#################################
|
||||
-- source include/have_tokudb.inc
|
||||
let $engine_type=tokudb;
|
||||
-- source extra/rpl_tests/rpl_insert_id.test
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#################################
|
||||
# Wrapper for rpl_insert_id.test#
|
||||
#################################
|
||||
-- source include/have_tokudb.inc
|
||||
let $engine_type=tokudb;
|
||||
-- source extra/rpl_tests/rpl_insert_id_pk.test
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
-- source include/have_tokudb.inc
|
||||
let $engine_type=TokuDB;
|
||||
-- source extra/rpl_tests/rpl_multi_update.test
|
||||
|
|
@ -0,0 +1 @@
|
|||
--replicate-ignore-table=nothing.sensible
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#######################################################
|
||||
# Wrapper for rpl_multi_update2.test to allow multi #
|
||||
# Engines to reuse test code. By JBM 2006-02-15 #
|
||||
# Added comments section and to skip when ndb is #
|
||||
# Default engine. #
|
||||
#######################################################
|
||||
--source include/have_tokudb.inc
|
||||
--source include/master-slave.inc
|
||||
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT');
|
||||
let $engine_type=TokuDB;
|
||||
--source extra/rpl_tests/rpl_multi_update2.test
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#######################################################
|
||||
# Wrapper for rpl_multi_update3.test to allow multi #
|
||||
# Engines to reuse test code. By JBM 2006-02-15 #
|
||||
# Added comments section and to skip when ndb is #
|
||||
# Default engine. #
|
||||
#######################################################
|
||||
--source include/have_tokudb.inc
|
||||
--source include/master-slave.inc
|
||||
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
|
||||
let $engine_type=TokuDB;
|
||||
--source extra/rpl_tests/rpl_multi_update3.test
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1 @@
|
|||
--read-only=ON --loose-tokudb-rpl-unique-checks=OFF --loose-tokudb-rpl-lookup-rows=OFF
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
# test tokudb read free replication feature with partition table
|
||||
|
||||
skip MDEV-13441;
|
||||
--source include/have_partition.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_partition.inc
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
call mtr.add_suppression(".*read free replication is disabled for TokuDB table.*continue with rows lookup");
|
||||
|
||||
connection master;
|
||||
|
||||
# partition table with explicit PK
|
||||
CREATE TABLE t1 (id int(11) NOT NULL, pid int(11), PRIMARY KEY (id)) ENGINE=TokuDB
|
||||
PARTITION BY RANGE (id)
|
||||
(PARTITION p_1 VALUES LESS THAN (10) ENGINE = TokuDB,
|
||||
PARTITION p_2 VALUES LESS THAN (20) ENGINE = TokuDB,
|
||||
PARTITION p_all VALUES LESS THAN MAXVALUE ENGINE = TokuDB);
|
||||
|
||||
insert into t1 values (1, 1), (2, 2), (3, 3), (11, 11), (12, 12), (13, 13);
|
||||
|
||||
# partition table without explicit PK
|
||||
CREATE TABLE t2 (id int(11) NOT NULL, pid int(11), key idx_1(id)) ENGINE=TokuDB
|
||||
PARTITION BY RANGE (id)
|
||||
(PARTITION p_1 VALUES LESS THAN (10) ENGINE = TokuDB,
|
||||
PARTITION p_2 VALUES LESS THAN (20) ENGINE = TokuDB,
|
||||
PARTITION p_all VALUES LESS THAN MAXVALUE ENGINE = TokuDB);
|
||||
|
||||
insert into t2 values (1, 1), (2, 2), (3, 3), (11, 11), (12, 12), (13, 13);
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
# set tokudb rfr crash/assert conditions if we enter lookup code
|
||||
# to make sure no unique checks or row lookups is invoked
|
||||
connection slave;
|
||||
--source include/stop_slave.inc
|
||||
let $saved_debug = `select @@debug`;
|
||||
set global debug= "+d,tokudb_crash_if_rpl_looks_up_row,tokudb_crash_if_rpl_does_uniqueness_check";
|
||||
--source include/start_slave.inc
|
||||
|
||||
connection master;
|
||||
insert into t1 values(21, 21);
|
||||
delete from t1 where id = 11;
|
||||
update t1 set pid = 2 where id = 1;
|
||||
|
||||
sync_slave_with_master;
|
||||
|
||||
connection master;
|
||||
|
||||
--let $diff_tables= master:test.t1, slave:test.t1
|
||||
--source include/diff_tables.inc
|
||||
|
||||
# print rfr disabled warning in errlog
|
||||
connection master;
|
||||
insert into t2 values(21, 21);
|
||||
delete from t2 where id = 11;
|
||||
update t2 set pid = 2 where id = 1;
|
||||
|
||||
sync_slave_with_master;
|
||||
|
||||
--let $diff_tables= master:test.t2, slave:test.t2
|
||||
--source include/diff_tables.inc
|
||||
|
||||
connection master;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
sync_slave_with_master;
|
||||
|
||||
connection slave;
|
||||
--source include/stop_slave.inc
|
||||
set global debug= "-d,tokudb_crash_if_rpl_looks_up_row,tokudb_crash_if_rpl_does_uniqueness_check";
|
||||
set global debug= @saved_debug;
|
||||
--source include/start_slave.inc
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1 @@
|
|||
--transaction_isolation=READ-COMMITTED
|
||||
|
|
@ -0,0 +1 @@
|
|||
--skip-slave-start --relay-log-info-repository=TABLE --relay-log-recovery=1 --transaction_isolation=READ-COMMITTED
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# This test takes long time, so only run it with the --big-test mtr-flag.
|
||||
--source include/big_test.inc
|
||||
--source include/not_embedded.inc
|
||||
--source include/not_valgrind.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/not_mts_slave_parallel_workers.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
call mtr.add_suppression('Attempting backtrace');
|
||||
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||
call mtr.add_suppression(".* InnoDB: Warning: allocated tablespace .*, old maximum was .*");
|
||||
|
||||
let $engine_type=TokuDB;
|
||||
let $database_name=test;
|
||||
--source extra/rpl_tests/rpl_crash_safe.test
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
#
|
||||
# This file contains tests for WL#5096.
|
||||
#
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
#
|
||||
# WL#5096 Tests.
|
||||
#
|
||||
|
||||
#
|
||||
# Tests combinations of binlog-row-image against mixes of MyISAM and InnoDB
|
||||
# storage engines on all three servers.
|
||||
#
|
||||
# All the combinarions need not to be separated into their own files as
|
||||
# the tests for indexes and engines mixes are, because noblobs test script
|
||||
# does not take too long time, thence we do not risk triggering PB2 timeout
|
||||
# on valgrind runs.
|
||||
#
|
||||
|
||||
## NOBLOB
|
||||
|
||||
-- let $row_img_set=server_1:NOBLOB:N,server_2:NOBLOB:Y,server_3:NOBLOB:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_blobs.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
## MINIMAL
|
||||
|
||||
-- let $row_img_set=server_1:MINIMAL:N,server_2:MINIMAL:Y,server_3:MINIMAL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_blobs.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
## FULL
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_blobs.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
-- source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096 and bug fixes.
|
||||
#
|
||||
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/not_gtid_enabled.inc
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096
|
||||
#
|
||||
|
||||
#
|
||||
# Tests for different storage engines on each server,
|
||||
# but same index structure on tables. The tests are conducted
|
||||
# using FULL binlog-row-image on all servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
#
|
||||
# BUG#49100
|
||||
#
|
||||
|
||||
-- echo ### Testing with TokuDB storage engine
|
||||
|
||||
-- let $engine=TokuDB
|
||||
-- source extra/rpl_tests/rpl_row_empty_imgs.test
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
-- source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096 and bug fixes.
|
||||
#
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096
|
||||
#
|
||||
|
||||
#
|
||||
# Tests for different storage engines on each server,
|
||||
# but same index structure on tables. The tests are conducted
|
||||
# using MINIMAL binlog-row-image on all servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:MINIMAL:N,server_2:MINIMAL:Y,server_3:MINIMAL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
-- source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096 and bug fixes.
|
||||
#
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096
|
||||
#
|
||||
|
||||
#
|
||||
# Tests for different storage engines on each server,
|
||||
# but same index structure on tables. The tests are conducted
|
||||
# using NOBLOB binlog-row-image on all servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:NOBLOB:N,server_2:NOBLOB:Y,server_3:NOBLOB:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
-- source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096.
|
||||
#
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096 Tests.
|
||||
#
|
||||
|
||||
#
|
||||
# Tests FULL image against a mix of MyISAM and InnoDB engines on
|
||||
# each of the three servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_diff_indexes.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
--source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096.
|
||||
#
|
||||
|
||||
--let $rpl_topology= 1->2->3
|
||||
--source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096 Tests.
|
||||
#
|
||||
|
||||
#
|
||||
# Tests MINIMAL image against a mix of MyISAM and InnoDB engines on
|
||||
# each of the three servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:MINIMAL:N,server_2:MINIMAL:Y,server_3:MINIMAL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_diff_indexes.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#Want to skip this test from daily Valgrind execution
|
||||
skip Require rpl files from MySQL;
|
||||
-- source include/no_valgrind_without_big.inc
|
||||
#
|
||||
# This file contains tests for WL#5096.
|
||||
#
|
||||
|
||||
-- let $rpl_topology= 1->2->3
|
||||
-- source include/rpl_init.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
|
||||
-- connection server_1
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_2
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_3
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- connection server_1
|
||||
|
||||
#
|
||||
# WL#5096
|
||||
#
|
||||
|
||||
#
|
||||
# Tests NOBLOB image against a mix of MyISAM and InnoDB engines on
|
||||
# each of the three servers.
|
||||
#
|
||||
|
||||
-- let $row_img_set=server_1:NOBLOB:N,server_2:NOBLOB:Y,server_3:NOBLOB:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
-- let $row_img_test_script= extra/rpl_tests/rpl_row_img_diff_indexes.test
|
||||
-- source suite/tokudb.rpl/include/rpl_tokudb_row_img_general_loop.inc
|
||||
|
||||
-- let $row_img_set=server_1:FULL:N,server_2:FULL:Y,server_3:FULL:Y
|
||||
-- source include/rpl_row_img_set.inc
|
||||
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
--skip-external-locking
|
||||
--default-storage-engine=MyISAM
|
||||
14
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_log.test
Normal file
14
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_log.test
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
###################################
|
||||
# Wrapper for rpl_row_log.test #
|
||||
# Added wrapper so that MyISAM & #
|
||||
# Innodb and NDB could all use the#
|
||||
# Same test. NDB produced a diff #
|
||||
# bin-log #
|
||||
###################################
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=TokuDB;
|
||||
-- source extra/rpl_tests/rpl_log.test
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1 @@
|
|||
--replicate-do-db=bug_37656 --replicate-ignore-table=bug_37656.t1 --replicate-do-table=bug_37656.t2 --replicate-do-table=bug_37656.t3 --lower-case-table-names=1
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# BUG#37656
|
||||
#
|
||||
# For details look into extra/rpl_tests/rpl_lower_case_table_names.test
|
||||
#
|
||||
skip Missing extra/rpl_tests/rpl_lower_case_table_names.test;
|
||||
|
||||
-- source include/not_gtid_enabled.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/not_windows.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
|
||||
-- let $engine=TokuDB
|
||||
-- source extra/rpl_tests/rpl_lower_case_table_names.test
|
||||
-- source include/rpl_end.inc
|
||||
13
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_sp003.test
Normal file
13
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_sp003.test
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#################################
|
||||
# Wrapper for rpl_row_sp003.test#
|
||||
#################################
|
||||
########################################################
|
||||
# By JBM 2005-02-15 Wrapped to allow reuse of test code#
|
||||
# Added to skip if ndb is default #
|
||||
########################################################
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=TOKUDB;
|
||||
-- source extra/rpl_tests/rpl_row_sp003.test
|
||||
-- source include/rpl_end.inc
|
||||
13
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_sp006.test
Normal file
13
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_sp006.test
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#################################
|
||||
# Wrapper for rpl_row_sp006.test#
|
||||
#################################
|
||||
########################################################
|
||||
# By JBM 2005-02-15 Wrapped to allow reuse of test code#
|
||||
# Added to skip if ndb is default #
|
||||
########################################################
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=TokuDB;
|
||||
-- source extra/rpl_tests/rpl_row_sp006.test
|
||||
-- source include/rpl_end.inc
|
||||
18
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_trig004.test
Normal file
18
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_row_trig004.test
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#############################################################################
|
||||
# Original Author: JBM #
|
||||
# Original Date: Oct/18/2005 #
|
||||
#############################################################################
|
||||
# TEST: Use before insert triggers and has the second insert fail #
|
||||
#############################################################################
|
||||
# Change by JBM 2006-02-14 added to skip when NDB default engine #
|
||||
# This test has been wrapped to allow multipal engines to use same code #
|
||||
#############################################################################
|
||||
|
||||
# Includes
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=TOKUDB;
|
||||
-- source extra/rpl_tests/rpl_trig004.test
|
||||
|
||||
-- source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
--skip-external-locking
|
||||
--default-storage-engine=MyISAM
|
||||
14
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_stm_log.test
Normal file
14
storage/tokudb/mysql-test/rpl/t/rpl_tokudb_stm_log.test
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
###################################
|
||||
# Wrapper for rpl_row_log.test #
|
||||
# Added wrapper so that MyISAM & #
|
||||
# Innodb and NDB could all use the#
|
||||
# Same test. NDB produced a diff #
|
||||
# bin-log #
|
||||
###################################
|
||||
-- source include/have_binlog_format_statement.inc
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/master-slave.inc
|
||||
let $engine_type=TokuDB;
|
||||
-- source extra/rpl_tests/rpl_log.test
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1 @@
|
|||
--transaction_isolation=READ-COMMITTED
|
||||
|
|
@ -0,0 +1 @@
|
|||
--skip-slave-start --relay-log-info-repository=TABLE --relay-log-recovery=1 --transaction_isolation=READ-COMMITTED
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
--source include/big_test.inc
|
||||
--source include/not_embedded.inc
|
||||
--source include/not_valgrind.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_tokudb.inc
|
||||
--source include/have_binlog_format_mixed_or_statement.inc
|
||||
--source include/not_mts_slave_parallel_workers.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
call mtr.add_suppression('Attempting backtrace');
|
||||
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||
call mtr.add_suppression(".* InnoDB: Warning: allocated tablespace .*, old maximum was .*");
|
||||
|
||||
let $engine_type=TokuDB;
|
||||
let $database_name=test;
|
||||
--source extra/rpl_tests/rpl_crash_safe.test
|
||||
--source include/rpl_end.inc
|
||||
|
|
@ -0,0 +1 @@
|
|||
--replicate-do-db=bug_37656 --replicate-ignore-table=bug_37656.t1 --replicate-do-table=bug_37656.t2 --replicate-do-table=bug_37656.t3 --lower-case-table-names=1
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# BUG#37656
|
||||
#
|
||||
# For details look into extra/rpl_tests/rpl_lower_case_table_names.test
|
||||
#
|
||||
skip Missing extra/rpl_tests/rpl_lower_case_table_names.test;
|
||||
|
||||
-- source include/have_tokudb.inc
|
||||
-- source include/not_windows.inc
|
||||
-- source include/have_binlog_format_mixed_or_statement.inc
|
||||
-- source include/master-slave.inc
|
||||
|
||||
-- let $engine=TokuDB
|
||||
-- source extra/rpl_tests/rpl_lower_case_table_names.test
|
||||
-- source include/rpl_end.inc
|
||||
Loading…
Add table
Add a link
Reference in a new issue