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

This commit is contained in:
marko@hundin.mysql.fi 2005-01-05 11:56:41 +02:00
parent 4cbe322517
commit 7422b23557

View file

@ -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;