mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
InnoDB: fix corruption in crash recovery of BLOB fields (Bug #7679)
This commit is contained in:
parent
4cbe322517
commit
7422b23557
1 changed files with 2 additions and 1 deletions
|
@ -443,7 +443,8 @@ mlog_open_and_write_index(
|
|||
type = dict_col_get_type(dict_field_get_col(field));
|
||||
len = field->fixed_len;
|
||||
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
|
||||
with maximum length > 255 */
|
||||
len = 0x7fff;
|
||||
|
|
Loading…
Add table
Reference in a new issue