1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-4946: IO thread should expose its current GTID position

Add another column to SHOW SLAVE STATUS, and adjust test suite
to cope.
This commit is contained in:
unknown
2013-11-25 15:21:25 +01:00
parent 1aecd6e7e5
commit 7a1f31866c
10 changed files with 52 additions and 36 deletions

View File

@ -190,6 +190,7 @@ SET GLOBAL gtid_binlog_state = @old_state;
# restored the state.
CREATE TABLE t1 (a INT PRIMARY KEY);
SET gtid_seq_no=100;
INSERT INTO t1 VALUES (1);
--let $master_pos= `SELECT @@GLOBAL.gtid_binlog_pos`
@ -202,6 +203,9 @@ INSERT INTO t1 VALUES (1);
--source include/wait_condition.inc
SELECT * FROM t1;
# Check that the IO gtid position in SHOW SLAVE STATUS is also correct.
--let $status_items= Gtid_IO_Pos
--source include/show_slave_status.inc
--connection server_1
DROP TABLE t1;