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
50d98e9c
Commit
50d98e9c
authored
Apr 09, 2015
by
Kristian Nielsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge MDEV-7940 into 10.0
parents
670d4dd8
15a2b5aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
mysql-test/suite/rpl/r/rpl_gtid_until.result
mysql-test/suite/rpl/r/rpl_gtid_until.result
+3
-3
mysql-test/suite/rpl/t/rpl_gtid_until.test
mysql-test/suite/rpl/t/rpl_gtid_until.test
+13
-3
No files found.
mysql-test/suite/rpl/r/rpl_gtid_until.result
View file @
50d98e9c
...
...
@@ -44,14 +44,14 @@ a
1
2
include/stop_slave.inc
START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200";
START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200
,0-1-300
";
include/wait_for_slave_to_start.inc
Using_Gtid = 'Current_Pos'
Until_Condition = 'Gtid'
INSERT INTO t1 VALUES (3);
DELETE FROM t1 WHERE a=3;
include/stop_slave.inc
include/start_slave.inc
*** Test UNTIL condition in an earlier binlog than the start GTID. ***
include/stop_slave.inc
SET gtid_domain_id = 1;
INSERT INTO t1 VALUES (3);
SET gtid_domain_id = 2;
...
...
mysql-test/suite/rpl/t/rpl_gtid_until.test
View file @
50d98e9c
...
...
@@ -73,19 +73,29 @@ SELECT * FROM t1 ORDER BY a;
# Test showing the UNTIL condition in SHOW SLAVE STATUS.
--
source
include
/
stop_slave
.
inc
START
SLAVE
UNTIL
master_gtid_pos
=
"1-10-100,2-20-200"
;
START
SLAVE
UNTIL
master_gtid_pos
=
"1-10-100,2-20-200
,0-1-300
"
;
--
source
include
/
wait_for_slave_to_start
.
inc
--
let
$status_items
=
Using_Gtid
,
Until_Condition
--
source
include
/
show_slave_status
.
inc
# Clear the UNTIL condition.
# Note that we need to wait for a transaction to get through from the master.
# Otherwise the IO thread may still be in get_master_version_and_clock()
# (wait_for_slave_to_start.inc returns as soon as the IO thread is connected),
# and we can get test failures from warnings in the log about IO thread being
# killed in the middle of setting @@gtid_strict_mode or similar (MDEV-7940).
--
connection
server_1
INSERT
INTO
t1
VALUES
(
3
);
DELETE
FROM
t1
WHERE
a
=
3
;
--
save_master_pos
--
connection
server_2
--
sync_with_master
--
source
include
/
stop_slave
.
inc
--
source
include
/
start_slave
.
inc
--
echo
***
Test
UNTIL
condition
in
an
earlier
binlog
than
the
start
GTID
.
***
--
connection
server_2
--
source
include
/
stop_slave
.
inc
--
connection
server_1
SET
gtid_domain_id
=
1
;
...
...
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