Commit ddd940a9 authored by marko's avatar marko

branches/zip: btr_page_get_sure_split_rec(): Return NULL when the record

is not guaranteed to fit on a compressed page, instead of letting
an assertion fail.
parent c9b221e8
......@@ -1367,7 +1367,10 @@ btr_page_get_sure_split_rec(
if (UNIV_LIKELY(free_space > (ulint) free_space_zip)) {
free_space = (ulint) free_space_zip;
ut_a(insert_size <= free_space);
if (UNIV_UNLIKELY(insert_size > free_space)) {
return(NULL);
}
}
}
......
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