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
b6f80330
Commit
b6f80330
authored
Aug 31, 2015
by
Philip Stoev
Committed by
Nirbhay Choubey
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Tests around do-* and ignore-* binlog options
parent
f7885fb6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
138 additions
and
0 deletions
+138
-0
mysql-test/suite/galera_3nodes/r/galera_slave_options_do.result
...test/suite/galera_3nodes/r/galera_slave_options_do.result
+28
-0
mysql-test/suite/galera_3nodes/r/galera_slave_options_ignore.result
.../suite/galera_3nodes/r/galera_slave_options_ignore.result
+28
-0
mysql-test/suite/galera_3nodes/t/galera_slave_options_do.cnf
mysql-test/suite/galera_3nodes/t/galera_slave_options_do.cnf
+7
-0
mysql-test/suite/galera_3nodes/t/galera_slave_options_do.test
...l-test/suite/galera_3nodes/t/galera_slave_options_do.test
+34
-0
mysql-test/suite/galera_3nodes/t/galera_slave_options_ignore.cnf
...est/suite/galera_3nodes/t/galera_slave_options_ignore.cnf
+7
-0
mysql-test/suite/galera_3nodes/t/galera_slave_options_ignore.test
...st/suite/galera_3nodes/t/galera_slave_options_ignore.test
+34
-0
No files found.
mysql-test/suite/galera_3nodes/r/galera_slave_options_do.result
0 → 100644
View file @
b6f80330
CREATE DATABASE db1;
CREATE DATABASE db2;
CREATE TABLE db1.t1 (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE db2.t2A (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE db2.t2B (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO db1.t1 VALUES (1);
INSERT INTO db2.t2A VALUES (2);
INSERT INTO db2.t2B VALUES (3);
SELECT COUNT(*) = 0 FROM db1.t1;
COUNT(*) = 0
1
SELECT COUNT(*) = 0 FROM db2.t2A;
COUNT(*) = 0
1
SELECT COUNT(*) = 1 FROM db2.t2B;
COUNT(*) = 1
1
SELECT COUNT(*) = 0 FROM db1.t1;
COUNT(*) = 0
1
SELECT COUNT(*) = 1 FROM db2.t2A;
COUNT(*) = 1
1
SELECT COUNT(*) = 1 FROM db2.t2B;
COUNT(*) = 1
1
DROP SCHEMA db1;
DROP SCHEMA db2;
mysql-test/suite/galera_3nodes/r/galera_slave_options_ignore.result
0 → 100644
View file @
b6f80330
CREATE DATABASE db1;
CREATE DATABASE db2;
CREATE TABLE db1.t1 (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE db2.t2A (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE db2.t2B (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO db1.t1 VALUES (1);
INSERT INTO db2.t2A VALUES (2);
INSERT INTO db2.t2B VALUES (3);
SELECT COUNT(*) = 0 FROM db1.t1;
COUNT(*) = 0
1
SELECT COUNT(*) = 0 FROM db2.t2A;
COUNT(*) = 0
1
SELECT COUNT(*) = 1 FROM db2.t2B;
COUNT(*) = 1
1
SELECT COUNT(*) = 0 FROM db1.t1;
COUNT(*) = 0
1
SELECT COUNT(*) = 1 FROM db2.t2A;
COUNT(*) = 1
1
SELECT COUNT(*) = 1 FROM db2.t2B;
COUNT(*) = 1
1
DROP SCHEMA db1;
DROP SCHEMA db2;
mysql-test/suite/galera_3nodes/t/galera_slave_options_do.cnf
0 → 100644
View file @
b6f80330
!include ../galera_3nodes.cnf
[mysqld.1]
binlog-do-db=db2
[mysqld.2]
replicate-wild-do-table=db2.t2B
mysql-test/suite/galera_3nodes/t/galera_slave_options_do.test
0 → 100644
View file @
b6f80330
#
# This tests checks the operation of binlog-do-db , replicate-wild-do-table
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
connection
node_1
CREATE
DATABASE
db1
;
CREATE
DATABASE
db2
;
CREATE
TABLE
db1
.
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
db2
.
t2A
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
db2
.
t2B
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
INSERT
INTO
db1
.
t1
VALUES
(
1
);
INSERT
INTO
db2
.
t2A
VALUES
(
2
);
INSERT
INTO
db2
.
t2B
VALUES
(
3
);
--
connection
node_2
SELECT
COUNT
(
*
)
=
0
FROM
db1
.
t1
;
SELECT
COUNT
(
*
)
=
0
FROM
db2
.
t2A
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2B
;
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
--
connection
node_3
SELECT
COUNT
(
*
)
=
0
FROM
db1
.
t1
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2A
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2B
;
--
connection
node_1
DROP
SCHEMA
db1
;
DROP
SCHEMA
db2
;
mysql-test/suite/galera_3nodes/t/galera_slave_options_ignore.cnf
0 → 100644
View file @
b6f80330
!include ../galera_3nodes.cnf
[mysqld.1]
binlog-ignore-db=db1
[mysqld.2]
replicate-wild-ignore-table=db2.t2A
mysql-test/suite/galera_3nodes/t/galera_slave_options_ignore.test
0 → 100644
View file @
b6f80330
#
# This tests checks the operation of binlog-ignore-db , replicate-wild-ignore-table
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
connection
node_1
CREATE
DATABASE
db1
;
CREATE
DATABASE
db2
;
CREATE
TABLE
db1
.
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
db2
.
t2A
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
db2
.
t2B
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
INSERT
INTO
db1
.
t1
VALUES
(
1
);
INSERT
INTO
db2
.
t2A
VALUES
(
2
);
INSERT
INTO
db2
.
t2B
VALUES
(
3
);
--
connection
node_2
SELECT
COUNT
(
*
)
=
0
FROM
db1
.
t1
;
SELECT
COUNT
(
*
)
=
0
FROM
db2
.
t2A
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2B
;
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
--
connection
node_3
SELECT
COUNT
(
*
)
=
0
FROM
db1
.
t1
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2A
;
SELECT
COUNT
(
*
)
=
1
FROM
db2
.
t2B
;
--
connection
node_1
DROP
SCHEMA
db1
;
DROP
SCHEMA
db2
;
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