You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.4 KiB

  1. include/rpl_init.inc [topology=1->2->1]
  2. include/rpl_connect.inc [creating M4]
  3. include/rpl_connect.inc [creating M2]
  4. SET @old_debug= @@global.debug;
  5. STOP SLAVE;
  6. SET GLOBAL debug_dbug= "+d,dbug.rows_events_to_delay_relay_logging";
  7. START SLAVE IO_THREAD;
  8. include/wait_for_slave_io_to_start.inc
  9. CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b VARCHAR(30000)) ENGINE=innodb;
  10. INSERT INTO `t1` VALUES (null, repeat('a', 1024)), (null, repeat('b', 1024));
  11. SET debug_sync='now WAIT_FOR start_sql_thread';
  12. START SLAVE SQL_THREAD;
  13. include/show_binlog_events.inc
  14. Log_name Pos Event_type Server_id End_log_pos Info
  15. slave-bin.000001 # Gtid # # GTID #-#-#
  16. slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b VARCHAR(30000)) ENGINE=innodb
  17. SET debug_sync='now SIGNAL go_on_relay_logging';
  18. include/show_binlog_events.inc
  19. Log_name Pos Event_type Server_id End_log_pos Info
  20. slave-bin.000001 # Gtid # # GTID #-#-#
  21. slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b VARCHAR(30000)) ENGINE=innodb
  22. slave-bin.000001 # Gtid # # BEGIN GTID #-#-#
  23. slave-bin.000001 # Table_map # # table_id: # (test.t1)
  24. slave-bin.000001 # Write_rows_v1 # # table_id: #
  25. slave-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
  26. slave-bin.000001 # Xid # # COMMIT /* XID */
  27. drop table t1;
  28. SET GLOBAL debug_dbug= @old_debug;
  29. SET debug_sync='RESET';
  30. include/rpl_end.inc