Commit 7eb67d41 authored by Marko Mäkelä's avatar Marko Mäkelä

trx_undo_page_report_modify(): Move an over-zealous assertion

Apparently, the first fields of a clustered index may be updated
in an update_undo vector when the index is ID_IND of SYS_FOREIGN,
as part of renaming the table during ALTER TABLE.
Normally, updates of the PRIMARY KEY should be logged as
delete-mark and an insert.
parent be434f6d
......@@ -1115,9 +1115,8 @@ trx_undo_page_report_modify(
goto store_len;
}
ut_ad(pos >= index->first_user_field());
if (UNIV_UNLIKELY(update->is_metadata())) {
ut_ad(pos >= index->first_user_field());
ut_ad(rec_is_metadata(rec, index));
if (rec_is_alter_metadata(rec, index)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment