summaryrefslogtreecommitdiff
path: root/innobase/mtr/mtr0log.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/mtr/mtr0log.c')
-rw-r--r--innobase/mtr/mtr0log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/mtr/mtr0log.c b/innobase/mtr/mtr0log.c
index 417093134c3..4f826f242e8 100644
--- a/innobase/mtr/mtr0log.c
+++ b/innobase/mtr/mtr0log.c
@@ -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;