mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
af8d4a97e2
Post push fix to address test issue.
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
#
|
|
# Kill OPTIMIZE command prior to table modification
|
|
#
|
|
RESET MASTER;
|
|
CREATE TABLE t1 (f INT) ENGINE=INNODB;
|
|
CREATE TABLE t2 (f INT) ENGINE=INNODB;
|
|
connect con1,127.0.0.1,root,,test,$MASTER_MYPORT,;
|
|
connection con1;
|
|
SET debug_sync='admin_command_kill_before_modify SIGNAL ready_to_be_killed WAIT_FOR master_cont';
|
|
OPTIMIZE TABLE t1,t2;
|
|
connection default;
|
|
SET debug_sync='now WAIT_FOR ready_to_be_killed';
|
|
KILL THD_ID;
|
|
SET debug_sync = 'reset';
|
|
disconnect con1;
|
|
include/show_binlog_events.inc
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (f INT) ENGINE=INNODB
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t2 (f INT) ENGINE=INNODB
|
|
DROP TABLE t1,t2;
|
|
RESET MASTER;
|
|
#
|
|
# Kill OPTIMIZE command after table modification
|
|
#
|
|
CREATE TABLE t1 (f INT) ENGINE=INNODB;
|
|
CREATE TABLE t2 (f INT) ENGINE=INNODB;
|
|
connect con1,127.0.0.1,root,,test,$MASTER_MYPORT,;
|
|
connection con1;
|
|
SET debug_sync='admin_command_kill_after_modify SIGNAL ready_to_be_killed WAIT_FOR master_cont';
|
|
OPTIMIZE TABLE t1,t2;
|
|
connection default;
|
|
SET debug_sync='now WAIT_FOR ready_to_be_killed';
|
|
KILL THD_ID;
|
|
SET debug_sync = 'reset';
|
|
disconnect con1;
|
|
DROP TABLE t1,t2;
|
|
FLUSH LOGS;
|
|
FOUND 1 /OPTIMIZE TABLE t1,t2/ in mysqlbinlog.out
|