Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_rotate_row_trans.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 # Initial setup
7 [connection master]
8 CREATE TABLE t1 (c1 INT) ENGINE=InnoDB;
9 # Sync slave with master and setup debug sync point
10 include/sync_slave_sql_with_master.inc
11 SET @save_debug=@@global.debug;
12 SET GLOBAL DEBUG='+d,stop_io_after_reading_write_rows_log_event';
13 # Insert the data in the master
14 [connection master]
15 BEGIN;
16 INSERT INTO t1 (c1) VALUES (0);
17 INSERT INTO t1 (c1) VALUES (1);
18 COMMIT;
19 # Restart the IO thread keeping SQL thread running until last relay log split
20 [connection slave]
21 include/wait_for_slave_io_to_stop.inc
22 START SLAVE IO_THREAD;
23 Warnings:
24 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
25 include/wait_for_slave_io_to_stop.inc
26 # Stop the SQL thread (it should be in the middle of the transaction/group)
27 include/stop_slave_sql.inc
28 # Remove the debug point and restart the both threads
29 SET GLOBAL DEBUG= @save_debug;
30 include/start_slave.inc
31 # Do one more insert on master and then sync slave with master
32 [connection master]
33 INSERT INTO t1 (c1) VALUES (2);
34 include/sync_slave_sql_with_master.inc
35 # Now compare master and slave's t1 table data
36 [connection master]
37 include/diff_tables.inc [master:t1, slave:t1]
38 # Cleanup
39 [connection master]
40 DROP TABLE t1;
41 include/rpl_end.inc