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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e823ca5b
Commit
e823ca5b
authored
Jan 03, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into mysql.com:/data2/mysql-5.1-new-ndb
parents
5c34add9
756666d7
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
286 additions
and
0 deletions
+286
-0
mysql-test/r/rpl_ndb_do_db.result
mysql-test/r/rpl_ndb_do_db.result
+60
-0
mysql-test/r/rpl_ndb_do_table.result
mysql-test/r/rpl_ndb_do_table.result
+25
-0
mysql-test/r/rpl_ndb_rep_ignore.result
mysql-test/r/rpl_ndb_rep_ignore.result
+56
-0
mysql-test/t/rpl_ndb_do_db-slave.opt
mysql-test/t/rpl_ndb_do_db-slave.opt
+1
-0
mysql-test/t/rpl_ndb_do_db.test
mysql-test/t/rpl_ndb_do_db.test
+55
-0
mysql-test/t/rpl_ndb_do_table-slave.opt
mysql-test/t/rpl_ndb_do_table-slave.opt
+1
-0
mysql-test/t/rpl_ndb_do_table.test
mysql-test/t/rpl_ndb_do_table.test
+31
-0
mysql-test/t/rpl_ndb_rep_ignore-slave.opt
mysql-test/t/rpl_ndb_rep_ignore-slave.opt
+1
-0
mysql-test/t/rpl_ndb_rep_ignore.test
mysql-test/t/rpl_ndb_rep_ignore.test
+56
-0
No files found.
mysql-test/r/rpl_ndb_do_db.result
0 → 100644
View file @
e823ca5b
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
DROP DATABASE IF EXISTS replica;
Warnings:
Note 1008 Can't drop database 'replica'; database doesn't exist
CREATE DATABASE replica;
CREATE TABLE t1 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
CREATE TABLE t2 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
USE replica;
CREATE TABLE replica.t1 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
CREATE TABLE replica.t2 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
USE test;
INSERT INTO t1 VALUES(1, repeat('abc',10));
INSERT INTO t2 VALUES(1, repeat('abc',10));
SHOW TABLES;
Tables_in_test
t1
t2
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SELECT COUNT(*) FROM t2;
COUNT(*)
1
USE replica;
INSERT INTO replica.t1 VALUES(2, repeat('def',200));
INSERT INTO replica.t2 VALUES(2, repeat('def',200));
SHOW TABLES;
Tables_in_replica
t1
t2
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SELECT COUNT(*) FROM t2;
COUNT(*)
1
SHOW TABLES;
Tables_in_test
USE replica;
SHOW TABLES;
Tables_in_replica
t1
t2
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SELECT COUNT(*) FROM t2;
COUNT(*)
1
USE test;
SHOW TABLES;
Tables_in_test
USE test;
DROP TABLE t1, t2;
DROP DATABASE IF EXISTS replica;
mysql-test/r/rpl_ndb_do_table.result
0 → 100644
View file @
e823ca5b
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
DROP TABLE IF EXISTS t1, t2;
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
CREATE TABLE t1 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
CREATE TABLE t2 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
INSERT INTO t1 VALUES(1, repeat('abc',10));
INSERT INTO t1 VALUES(2, repeat('def',200));
INSERT INTO t1 VALUES(3, repeat('ghi',3000));
INSERT INTO t2 VALUES(1, repeat('abc',10));
INSERT INTO t2 VALUES(2, repeat('def',200));
INSERT INTO t2 VALUES(3, repeat('ghi',3000));
SHOW TABLES;
Tables_in_test
t1
SELECT COUNT(*) FROM t1;
COUNT(*)
3
DROP TABLE IF EXISTS t1, t2;
mysql-test/r/rpl_ndb_rep_ignore.result
0 → 100644
View file @
e823ca5b
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
DROP DATABASE IF EXISTS replica;
Warnings:
Note 1008 Can't drop database 'replica'; database doesn't exist
CREATE DATABASE replica;
CREATE TABLE t1 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
CREATE TABLE t2 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
USE replica;
CREATE TABLE replica.t1 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
CREATE TABLE replica.t2 (a INT NOT NULL KEY, b text NOT NULL)ENGINE=NDB;
USE test;
INSERT INTO t1 VALUES(1, repeat('abc',10));
INSERT INTO t2 VALUES(1, repeat('abc',10));
SHOW TABLES;
Tables_in_test
t1
t2
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SELECT COUNT(*) FROM t2;
COUNT(*)
1
USE replica;
INSERT INTO replica.t1 VALUES(2, repeat('def',200));
INSERT INTO replica.t2 VALUES(2, repeat('def',200));
SHOW TABLES;
Tables_in_replica
t1
t2
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SELECT COUNT(*) FROM t2;
COUNT(*)
1
SHOW TABLES;
Tables_in_test
USE replica;
SHOW TABLES;
Tables_in_replica
t2
SELECT COUNT(*) FROM t2;
COUNT(*)
1
USE test;
SHOW TABLES;
Tables_in_test
USE test;
DROP TABLE t1, t2;
DROP DATABASE IF EXISTS replica;
mysql-test/t/rpl_ndb_do_db-slave.opt
0 → 100644
View file @
e823ca5b
--replicate-do-db=replica
mysql-test/t/rpl_ndb_do_db.test
0 → 100644
View file @
e823ca5b
###########################################################
# Author: Jeb
# Date: 14-12-2006
# Purpose: To test --replicate-do-database=db_name
# using cluster. Only replica should replicate.
##########################################################
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
DROP
DATABASE
IF
EXISTS
replica
;
# Create database and tables for the test.
CREATE
DATABASE
replica
;
CREATE
TABLE
t1
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
t2
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
USE
replica
;
CREATE
TABLE
replica
.
t1
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
replica
.
t2
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
# Insert data into db that should not be picked up by slave
USE
test
;
INSERT
INTO
t1
VALUES
(
1
,
repeat
(
'abc'
,
10
));
INSERT
INTO
t2
VALUES
(
1
,
repeat
(
'abc'
,
10
));
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t2
;
# Insert data into db that should be replicated
USE
replica
;
INSERT
INTO
replica
.
t1
VALUES
(
2
,
repeat
(
'def'
,
200
));
INSERT
INTO
replica
.
t2
VALUES
(
2
,
repeat
(
'def'
,
200
));
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t2
;
# Check results on slave
--
sync_slave_with_master
SHOW
TABLES
;
USE
replica
;
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t2
;
USE
test
;
SHOW
TABLES
;
# Cleanup from testing
connection
master
;
USE
test
;
DROP
TABLE
t1
,
t2
;
DROP
DATABASE
IF
EXISTS
replica
;
--
sync_slave_with_master
# End 5.1 test case
mysql-test/t/rpl_ndb_do_table-slave.opt
0 → 100644
View file @
e823ca5b
--replicate-do-table=test.t1
mysql-test/t/rpl_ndb_do_table.test
0 → 100644
View file @
e823ca5b
###########################################################
# Author: Jeb
# Date: 14-12-2006
# Purpose: To test --replicate-do-table=db_name.tbl_name
# using cluster. Only t1 should replicate.
##########################################################
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
DROP
TABLE
IF
EXISTS
t1
,
t2
;
CREATE
TABLE
t1
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
t2
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
INSERT
INTO
t1
VALUES
(
1
,
repeat
(
'abc'
,
10
));
INSERT
INTO
t1
VALUES
(
2
,
repeat
(
'def'
,
200
));
INSERT
INTO
t1
VALUES
(
3
,
repeat
(
'ghi'
,
3000
));
INSERT
INTO
t2
VALUES
(
1
,
repeat
(
'abc'
,
10
));
INSERT
INTO
t2
VALUES
(
2
,
repeat
(
'def'
,
200
));
INSERT
INTO
t2
VALUES
(
3
,
repeat
(
'ghi'
,
3000
));
--
sync_slave_with_master
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
connection
master
;
DROP
TABLE
IF
EXISTS
t1
,
t2
;
--
sync_slave_with_master
mysql-test/t/rpl_ndb_rep_ignore-slave.opt
0 → 100644
View file @
e823ca5b
--replicate-ignore-db=test --replicate-ignore-table=replica.t1
mysql-test/t/rpl_ndb_rep_ignore.test
0 → 100644
View file @
e823ca5b
###########################################################
# Author: Jeb
# Date: 15-12-2006
# Purpose: To test --replicate-ignore-table=db_name.tbl_name
# and --replicate-ignore-db=db_name
# using cluster. Only replica should replicate.
##########################################################
--
source
include
/
have_ndb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
DROP
DATABASE
IF
EXISTS
replica
;
# Create database and tables for the test.
CREATE
DATABASE
replica
;
CREATE
TABLE
t1
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
t2
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
USE
replica
;
CREATE
TABLE
replica
.
t1
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
replica
.
t2
(
a
INT
NOT
NULL
KEY
,
b
text
NOT
NULL
)
ENGINE
=
NDB
;
# Insert data into db that should not be picked up by slave
USE
test
;
INSERT
INTO
t1
VALUES
(
1
,
repeat
(
'abc'
,
10
));
INSERT
INTO
t2
VALUES
(
1
,
repeat
(
'abc'
,
10
));
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t2
;
# Insert data into db that should be replicated
USE
replica
;
INSERT
INTO
replica
.
t1
VALUES
(
2
,
repeat
(
'def'
,
200
));
INSERT
INTO
replica
.
t2
VALUES
(
2
,
repeat
(
'def'
,
200
));
SHOW
TABLES
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t2
;
# Check results on slave
--
sync_slave_with_master
SHOW
TABLES
;
USE
replica
;
SHOW
TABLES
;
#SELECT COUNT(*) FROM t1;
SELECT
COUNT
(
*
)
FROM
t2
;
USE
test
;
SHOW
TABLES
;
# Cleanup from testing
connection
master
;
USE
test
;
DROP
TABLE
t1
,
t2
;
DROP
DATABASE
IF
EXISTS
replica
;
--
sync_slave_with_master
# End 5.1 test case
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