Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
54e07cea
Commit
54e07cea
authored
Feb 07, 2006
by
jmiller@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More rpl test updates with using ndb as default engine
parent
b1354390
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
15 deletions
+32
-15
mysql-test/r/rpl_drop_temp.result
mysql-test/r/rpl_drop_temp.result
+2
-2
mysql-test/r/rpl_err_ignoredtable.result
mysql-test/r/rpl_err_ignoredtable.result
+3
-3
mysql-test/r/rpl_load_table_from_master.result
mysql-test/r/rpl_load_table_from_master.result
+2
-0
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+1
-1
mysql-test/t/rpl_drop_temp.test
mysql-test/t/rpl_drop_temp.test
+9
-2
mysql-test/t/rpl_err_ignoredtable.test
mysql-test/t/rpl_err_ignoredtable.test
+6
-4
mysql-test/t/rpl_foreign_key_innodb-slave.opt
mysql-test/t/rpl_foreign_key_innodb-slave.opt
+1
-0
mysql-test/t/rpl_load_table_from_master.test
mysql-test/t/rpl_load_table_from_master.test
+8
-3
No files found.
mysql-test/r/rpl_drop_temp.result
View file @
54e07cea
...
...
@@ -5,8 +5,8 @@ reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
create database if not exists mysqltest;
create temporary table mysqltest.t1 (n int);
create temporary table mysqltest.t2 (n int);
create temporary table mysqltest.t1 (n int)
ENGINE=MyISAM
;
create temporary table mysqltest.t2 (n int)
ENGINE=MyISAM
;
show status like 'Slave_open_temp_tables';
Variable_name Value
Slave_open_temp_tables 0
...
...
mysql-test/r/rpl_err_ignoredtable.result
View file @
54e07cea
...
...
@@ -7,14 +7,14 @@ start slave;
create table t1 (a int primary key);
create table t4 (a int primary key);
insert into t1 values (1),(1);
ERROR 23000: Duplicate entry '1' for key 1
Got one of the listed errors
insert into t4 values (1),(2);
show tables like 't1';
Tables_in_test (t1)
show tables like 't4';
Tables_in_test (t4)
t4
SELECT * FROM test.t4;
SELECT * FROM test.t4
ORDER BY a
;
a
1
2
...
...
@@ -33,7 +33,7 @@ select (@id := id) - id from t3;
kill @id;
drop table t2,t3;
insert into t4 values (3),(4);
SELECT * FROM test.t4;
SELECT * FROM test.t4
ORDER BY a
;
a
1
2
...
...
mysql-test/r/rpl_load_table_from_master.result
View file @
54e07cea
...
...
@@ -4,6 +4,7 @@ reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
"******************** Test Requirment 1 *************"
SET SQL_LOG_BIN=0,timestamp=200006;
CREATE TABLE t1(t TIMESTAMP NOT NULL,a CHAR(1))ENGINE=MyISAM;
INSERT INTO t1 ( a) VALUE ('F');
...
...
@@ -17,6 +18,7 @@ unix_timestamp(t)
set SQL_LOG_BIN=1,timestamp=default;
drop table t1;
set SQL_LOG_BIN=0;
"******************** Test Requirment 2 *************"
CREATE TABLE t1 (a INT NOT NULL) ENGINE=MyISAM MAX_ROWS=4000 CHECKSUM=1;
INSERT INTO t1 VALUES (1);
load table t1 from master;
...
...
mysql-test/t/disabled.def
View file @
54e07cea
...
...
@@ -30,6 +30,6 @@ ndb_autodiscover2 : Needs to be fixed w.r.t binlog
#ndb_alter_table_row : sometimes wrong error 1015!=1046
ndb_gis : garbled msgs from corrupt THD*
rpl_ndb_auto_inc : MySQL Bugs:17086
rpl_ndb_relay_space :
Results are not deterministic
rpl_ndb_relay_space :
Bug 16993
ndb_binlog_ddl_multi : Bug #17038
rpl_ndb_log : MySQL Bugs: #17158
mysql-test/t/rpl_drop_temp.test
View file @
54e07cea
##############################################
# Change Author: JBM
# Change Date: 2006-02-07
# Change: Added ENGINE=MyISAM
# Purpose: According to TU in 16552 This is how
# to work around NDB's issue with temp tables
##############################################
source
include
/
master
-
slave
.
inc
;
--
disable_warnings
create
database
if
not
exists
mysqltest
;
--
enable_warnings
create
temporary
table
mysqltest
.
t1
(
n
int
);
create
temporary
table
mysqltest
.
t2
(
n
int
);
create
temporary
table
mysqltest
.
t1
(
n
int
)
ENGINE
=
MyISAM
;
create
temporary
table
mysqltest
.
t2
(
n
int
)
ENGINE
=
MyISAM
;
sync_slave_with_master
;
connection
master
;
disconnect
master
;
...
...
mysql-test/t/rpl_err_ignoredtable.test
View file @
54e07cea
# Test for
# Bug #797: If a query is ignored on slave (replicate-ignore-table) the slave
# still checks that it has the same error as on the master.
##########################################################################
# 2006-02-07 JBM Added error code 1022 for NDB Engine + ORDER BY
##########################################################################
# Requires statement logging
--
source
include
/
master
-
slave
.
inc
connection
master
;
create
table
t1
(
a
int
primary
key
);
create
table
t4
(
a
int
primary
key
);
# generate an error that goes to the binlog
--
error
1062
--
error
10
22
,
10
62
insert
into
t1
values
(
1
),(
1
);
insert
into
t4
values
(
1
),(
2
);
save_master_pos
;
...
...
@@ -19,7 +21,7 @@ sync_with_master;
# check that the table has been ignored, because otherwise the test is nonsense
show
tables
like
't1'
;
show
tables
like
't4'
;
SELECT
*
FROM
test
.
t4
;
SELECT
*
FROM
test
.
t4
ORDER
BY
a
;
connection
master
;
drop
table
t1
;
save_master_pos
;
...
...
@@ -53,7 +55,7 @@ connection master1;
save_master_pos
;
connection
slave
;
sync_with_master
;
SELECT
*
FROM
test
.
t4
;
SELECT
*
FROM
test
.
t4
ORDER
BY
a
;
connection
master1
;
DROP
TABLE
test
.
t4
;
...
...
mysql-test/t/rpl_foreign_key_innodb-slave.opt
0 → 100644
View file @
54e07cea
--innodb
mysql-test/t/rpl_load_table_from_master.test
View file @
54e07cea
...
...
@@ -15,15 +15,14 @@
############################################################
# REQUIREMENT TEST 1:
# LOAD TABLE FROM MASTER must work with a forced timestamp.
#
# REQUIREMENTi TEST 2:
#LOAD TABLE FROM MASTER must work with table checksum
############################################################
#
# Test forced timestamp
#
--
source
include
/
master
-
slave
.
inc
--
echo
"******************** Test Requirment 1 *************"
# Don't log table creating to the slave as we want to test LOAD TABLE
SET
SQL_LOG_BIN
=
0
,
timestamp
=
200006
;
eval
CREATE
TABLE
t1
(
t
TIMESTAMP
NOT
NULL
,
a
CHAR
(
1
))
ENGINE
=
MyISAM
;
...
...
@@ -49,6 +48,12 @@ connection master;
# Don't log table creating to the slave as we want to test LOAD TABLE
set
SQL_LOG_BIN
=
0
;
#######################################################
# REQUIREMENTi TEST 2:
#LOAD TABLE FROM MASTER must work with table checksum
#######################################################
--
echo
"******************** Test Requirment 2 *************"
eval
CREATE
TABLE
t1
(
a
INT
NOT
NULL
)
ENGINE
=
MyISAM
MAX_ROWS
=
4000
CHECKSUM
=
1
;
INSERT
INTO
t1
VALUES
(
1
);
save_master_pos
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment