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
71c211d4
Commit
71c211d4
authored
Apr 18, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race in test case.
parent
e4634175
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
mysql-test/suite/multi_source/gtid.result
mysql-test/suite/multi_source/gtid.result
+1
-1
mysql-test/suite/multi_source/gtid.test
mysql-test/suite/multi_source/gtid.test
+7
-1
No files found.
mysql-test/suite/multi_source/gtid.result
View file @
71c211d4
...
...
@@ -14,9 +14,9 @@ Note 1937 SLAVE '' started
include/wait_for_slave_to_start.inc
SET GLOBAL gtid_domain_id= 1;
SET SESSION gtid_domain_id= 1;
CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(10)) ENGINE=InnoDB;
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10));
INSERT INTO t1 VALUES (1, "initial");
CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(10)) ENGINE=InnoDB;
INSERT INTO t3 VALUES (101, "initial 1");
SET GLOBAL gtid_domain_id= 2;
SET SESSION gtid_domain_id= 2;
...
...
mysql-test/suite/multi_source/gtid.test
View file @
71c211d4
...
...
@@ -32,11 +32,17 @@ start all slaves;
--
connection
master1
SET
GLOBAL
gtid_domain_id
=
1
;
SET
SESSION
gtid_domain_id
=
1
;
CREATE
TABLE
t3
(
a
INT
PRIMARY
KEY
,
b
VARCHAR
(
10
))
ENGINE
=
InnoDB
;
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
VARCHAR
(
10
));
INSERT
INTO
t1
VALUES
(
1
,
"initial"
);
CREATE
TABLE
t3
(
a
INT
PRIMARY
KEY
,
b
VARCHAR
(
10
))
ENGINE
=
InnoDB
;
INSERT
INTO
t3
VALUES
(
101
,
"initial 1"
);
# Make sure we have CREATE TABLE t3 from master1 before replicating INSERT INTO
# t3 from master2.
--
connection
slave1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
information_schema
.
tables
WHERE
table_name
=
"t3"
AND
table_schema
=
"test"
--
source
include
/
wait_condition
.
inc
--
connection
master2
SET
GLOBAL
gtid_domain_id
=
2
;
SET
SESSION
gtid_domain_id
=
2
;
...
...
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