mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
branches/zip: rec_convert_dtuple_to_rec_comp(): Allow externally stored
columns to be up to REC_MAX_INDEX_COL_LEN + BTR_EXTERN_FIELD_REF_SIZE bytes in a debug assertion. This assertion could fail since r2159 in trx_undo_prev_version_build(), because the undo log records for updates and deletes would contain longer prefixes of externally stored columns. The assertion failure was reported by Sunny.
This commit is contained in:
parent
7c5511ef98
commit
15ef4c8f0b
1 changed files with 2 additions and 1 deletions
|
@ -1093,7 +1093,8 @@ rec_convert_dtuple_to_rec_comp(
|
|||
ut_ad(len == fixed_len);
|
||||
ut_ad(!dfield_is_ext(field));
|
||||
} else if (dfield_is_ext(field)) {
|
||||
ut_ad(len < REC_MAX_INDEX_COL_LEN);
|
||||
ut_ad(len < REC_MAX_INDEX_COL_LEN
|
||||
+ BTR_EXTERN_FIELD_REF_SIZE);
|
||||
*lens-- = (byte) (len >> 8) | 0xc0;
|
||||
*lens-- = (byte) len;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue