| 1 |
RESET MASTER; |
| 2 |
SET @@session.gtid_domain_id= 0; |
| 3 |
SET @@session.server_id= 1; |
| 4 |
CREATE TABLE t1 (a int); |
| 5 |
SET @@session.gtid_domain_id= 1; |
| 6 |
SET @@session.server_id= 2; |
| 7 |
CREATE TABLE t2 (a int); |
| 8 |
SET @@session.server_id= 1; |
| 9 |
INSERT INTO t2 VALUES (1); |
| 10 |
SET @@session.gtid_domain_id= 2; |
| 11 |
SET @@session.server_id= 3; |
| 12 |
CREATE TABLE t3 (a int); |
| 13 |
FLUSH LOGS; |
| 14 |
FLUSH LOGS; |
| 15 |
# MYSQL_BINLOG MYSQLD_DATADIR/binlog_file > SEARCH_FILE |
| 16 |
FOUND 1 /Gtid list \[0-1-1,\n# 1-2-1,\n# 1-1-2,\n# 2-3-1\]/ in tmp_binlog.out |
| 17 |
DROP TABLE t1; |
| 18 |
DROP TABLE t2; |
| 19 |
DROP TABLE t3; |