Skip to content

Commit

Permalink
MDEV-25910: Make ALTER TABLE...ALGORITHM=COPY durable again
Browse files Browse the repository at this point in the history
ha_innobase::extra(HA_EXTRA_END_ALTER_COPY): Flush the redo log
because the main transaction will not have written any log and
thus will not initiate any log write either. But the DDL recovery
layer expects that the operation will have been committed.
  • Loading branch information
dr-m committed Jun 15, 2021
1 parent e0647dc commit e5b9dc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15308,6 +15308,7 @@ ha_innobase::extra(
break;
case HA_EXTRA_END_ALTER_COPY:
m_prebuilt->table->skip_alter_undo = 0;
log_write_up_to(LSN_MAX, true);
break;
default:/* Do nothing */
;
Expand Down

0 comments on commit e5b9dc1

Please sign in to comment.