| 1 |
# MDEV-11675 binlog_alter_two_phase |
| 2 |
# MDEV-27511 Assertion `rgi->gtid_ev_flags_extra & Gtid_log_event::FL_COMMIT_ALTER_E1' failed |
| 3 |
# in write_bin_log_start_alter |
| 4 |
# |
| 5 |
--source include/have_log_bin.inc |
| 6 |
--source include/master-slave.inc |
| 7 |
|
| 8 |
# The test proves the assert is not hit anymore. |
| 9 |
--connection master |
| 10 |
CREATE TABLE t1 (a1 int, d1 int DEFAULT 0); |
| 11 |
INSERT INTO t1 VALUES (1,1) ; |
| 12 |
SET binlog_alter_two_phase = ON; |
| 13 |
ALTER TABLE t1 WAIT 9 RENAME COLUMN a1 TO a2; |
| 14 |
SET binlog_alter_two_phase = OFF; |
| 15 |
ALTER TABLE t1 ALTER COLUMN d1 DROP DEFAULT; |
| 16 |
|
| 17 |
--sync_slave_with_master |
| 18 |
|
| 19 |
# Cleanup |
| 20 |
--connection master |
| 21 |
drop table t1; |
| 22 |
--sync_slave_with_master |
| 23 |
|
| 24 |
--source include/rpl_end.inc |