Commit c94791e1 authored by marko's avatar marko

branches/zip: Correct an off-by-one error in the debug assertion that was

supposed to be fixed in r2163.
parent 33e082be
...@@ -1093,7 +1093,7 @@ rec_convert_dtuple_to_rec_comp( ...@@ -1093,7 +1093,7 @@ rec_convert_dtuple_to_rec_comp(
ut_ad(len == fixed_len); ut_ad(len == fixed_len);
ut_ad(!dfield_is_ext(field)); ut_ad(!dfield_is_ext(field));
} else if (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); + BTR_EXTERN_FIELD_REF_SIZE);
*lens-- = (byte) (len >> 8) | 0xc0; *lens-- = (byte) (len >> 8) | 0xc0;
*lens-- = (byte) len; *lens-- = (byte) len;
......
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