mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
354b14e718
Clean the binlog on nodes after test is complete
20 lines
374 B
Text
20 lines
374 B
Text
START SLAVE;
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES(1);
|
|
SELECT LENGTH(@@global.gtid_binlog_state) > 1;
|
|
LENGTH(@@global.gtid_binlog_state) > 1
|
|
1
|
|
gtid_binlog_state_equal
|
|
1
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
COUNT(*) = 1
|
|
1
|
|
gtid_binlog_state_equal
|
|
1
|
|
DROP TABLE t1;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
#cleanup
|
|
reset master;
|
|
reset master;
|
|
reset master;
|