Skip to content

Commit 5f69e18

Browse files
MDEV-36682 Conflict between MDEV-36504 and MDEV-16329
Reason: ======= - MDEV-16239 does apply the DML logs after bulk insert for ALTER TABLE..ALGORITHM=COPY, but InnoDB fails to reset the bulk_insert in ha_innobase::extra(HA_EXTRA_END_ALTER_COPY). This leads to crash while applying DML logs. Solution: ======= ha_innobase::extra(HA_EXTRA_END_ALTER_COPY): Reset TRX_DDL_BULK at the end of bulk insert operation
1 parent 1d5557d commit 5f69e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/handler/ha_innodb.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15939,7 +15939,7 @@ ha_innobase::extra(
1593915939
}
1594015940

1594115941
trx->end_bulk_insert(*m_prebuilt->table);
15942-
trx->bulk_insert &= TRX_DDL_BULK;
15942+
trx->bulk_insert &= TRX_DML_BULK;
1594315943
if (!m_prebuilt->table->is_temporary()
1594415944
&& !high_level_read_only) {
1594515945
/* During copy_data_between_tables(), InnoDB only

0 commit comments

Comments
 (0)