Skip to content

Commit

Permalink
Follow-up to MDEV-14799: Remove bogus debug assertions
Browse files Browse the repository at this point in the history
trx_undo_rec_get_partial_row(): When the PRIMARY KEY includes a
column prefix of an externally stored column, the already parsed
part of the undo log record may contain a reference to
an off-page column. This is the case in the bug58912 test in
innodb.innodb.
  • Loading branch information
dr-m committed Jan 2, 2018
1 parent d384ead commit 20fab71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions storage/innobase/trx/trx0rec.c
Expand Up @@ -1100,9 +1100,6 @@ trx_undo_rec_get_partial_row(

for (; uf != ue; uf++) {
ulint c = dict_index_get_nth_col(index, uf->field_no)->ind;
ut_ad(uf->orig_len == UNIV_SQL_NULL
|| uf->orig_len < UNIV_EXTERN_STORAGE_FIELD);
ut_ad(!dfield_is_ext(&uf->new_val));
*dtuple_get_nth_field(*row, c) = uf->new_val;
}

Expand Down
3 changes: 0 additions & 3 deletions storage/xtradb/trx/trx0rec.c
Expand Up @@ -1113,9 +1113,6 @@ trx_undo_rec_get_partial_row(

for (; uf != ue; uf++) {
ulint c = dict_index_get_nth_col(index, uf->field_no)->ind;
ut_ad(uf->orig_len == UNIV_SQL_NULL
|| uf->orig_len < UNIV_EXTERN_STORAGE_FIELD);
ut_ad(!dfield_is_ext(&uf->new_val));
*dtuple_get_nth_field(*row, c) = uf->new_val;
}

Expand Down

0 comments on commit 20fab71

Please sign in to comment.