Commit 509554c3 authored by unknown's avatar unknown

InnoDB: fix corruption in crash recovery of BLOB fields (Bug #7679)

innobase/mtr/mtr0log.c:
  mlog_open_and_write_index(): BLOBs should have maximum length > 255
parent 4fd1524c
Branches unavailable
Tags unavailable
No related merge requests found
...@@ -443,7 +443,8 @@ mlog_open_and_write_index( ...@@ -443,7 +443,8 @@ mlog_open_and_write_index(
type = dict_col_get_type(dict_field_get_col(field)); type = dict_col_get_type(dict_field_get_col(field));
len = field->fixed_len; len = field->fixed_len;
ut_ad(len < 0x7fff); ut_ad(len < 0x7fff);
if (len == 0 && dtype_get_len(type) > 255) { if (len == 0 && (dtype_get_len(type) > 255
|| dtype_get_mtype(type) == DATA_BLOB)) {
/* variable-length field /* variable-length field
with maximum length > 255 */ with maximum length > 255 */
len = 0x7fff; len = 0x7fff;
......
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