mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-4984: Implement MASTER_GTID_WAIT() and @@LAST_GTID.
Couple of small fixes following buildbot testing.
This commit is contained in:
@ -40,7 +40,8 @@ if (!$_slave_timeout)
|
||||
if ($_result == -1)
|
||||
{
|
||||
--let $_current_gtid_pos= `SELECT @@GLOBAL.gtid_slave_pos`
|
||||
--die Timeout in master_gtid_wait('$master_pos', $_slave_timeout), current slave GTID position is: $_current_gtid_pos.
|
||||
--echo Timeout in master_gtid_wait('$master_pos', $_slave_timeout), current slave GTID position is: $_current_gtid_pos.
|
||||
--die Failed to sync with master
|
||||
}
|
||||
|
||||
--let $include_filename= sync_with_master_gtid.inc
|
||||
|
@ -272,7 +272,7 @@ SELECT master_gtid_wait('2-1-1,1-1-4,0-1-110');
|
||||
SELECT master_gtid_wait('0-1-1000', 0.5);
|
||||
SELECT master_gtid_wait('0-1-2000');
|
||||
SELECT master_gtid_wait('2-1-10');
|
||||
SELECT master_gtid_wait('2-1-5', 1);
|
||||
SELECT master_gtid_wait('2-1-6', 1);
|
||||
SELECT master_gtid_wait('2-1-5');
|
||||
SELECT master_gtid_wait('2-1-10');
|
||||
SELECT master_gtid_wait('2-1-5,1-1-4,0-1-110');
|
||||
@ -284,14 +284,14 @@ SELECT master_gtid_wait('0-1-109');
|
||||
SELECT master_gtid_wait('2-1-2', 0.5);
|
||||
master_gtid_wait('2-1-2', 0.5)
|
||||
-1
|
||||
KILL QUERY 22;
|
||||
KILL QUERY KILL_ID;
|
||||
ERROR 70100: Query execution was interrupted
|
||||
SET gtid_domain_id=2;
|
||||
SET gtid_seq_no=2;
|
||||
INSERT INTO t1 VALUES (4);
|
||||
master_gtid_wait('2-1-2')
|
||||
0
|
||||
KILL CONNECTION 25;
|
||||
KILL CONNECTION KILL_ID;
|
||||
ERROR HY000: Lost connection to MySQL server during query
|
||||
SET gtid_domain_id=1;
|
||||
SET gtid_seq_no=4;
|
||||
@ -305,8 +305,8 @@ master_gtid_wait('2-1-1,1-1-4,0-1-110')
|
||||
0
|
||||
master_gtid_wait('0-1-1000', 0.5)
|
||||
-1
|
||||
master_gtid_wait('2-1-5', 1)
|
||||
0
|
||||
master_gtid_wait('2-1-6', 1)
|
||||
-1
|
||||
master_gtid_wait('0-1-109')
|
||||
0
|
||||
SET gtid_domain_id=2;
|
||||
|
@ -287,7 +287,7 @@ send SELECT master_gtid_wait('0-1-2000');
|
||||
send SELECT master_gtid_wait('2-1-10');
|
||||
|
||||
--connect (s5,127.0.0.1,root,,test,$SERVER_MYPORT_2,)
|
||||
send SELECT master_gtid_wait('2-1-5', 1);
|
||||
send SELECT master_gtid_wait('2-1-6', 1);
|
||||
|
||||
# This one we will kill also.
|
||||
--connect (s6,127.0.0.1,root,,test,$SERVER_MYPORT_2,)
|
||||
@ -314,6 +314,7 @@ send SELECT master_gtid_wait('0-1-109');
|
||||
# This one should time out.
|
||||
SELECT master_gtid_wait('2-1-2', 0.5);
|
||||
|
||||
--replace_result $kill1_id KILL_ID
|
||||
eval KILL QUERY $kill1_id;
|
||||
--connection s3
|
||||
--error ER_QUERY_INTERRUPTED
|
||||
@ -328,6 +329,7 @@ INSERT INTO t1 VALUES (4);
|
||||
reap;
|
||||
|
||||
--connection server_2
|
||||
--replace_result $kill2_id KILL_ID
|
||||
eval KILL CONNECTION $kill2_id;
|
||||
|
||||
--connection s6
|
||||
|
@ -1,3 +1,5 @@
|
||||
--source include/not_embedded.inc
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@global.last_gtid;
|
||||
|
||||
|
Reference in New Issue
Block a user