Commit b02b07bc authored by marko's avatar marko

btr_page_get_sure_split_rec(): Revert the change from r875:

"On compressed pages, return NULL if incl_data > free_space."

btr_page_split_and_insert(): Remove the limit check of n_iterations
on compressed pages.  After enough many invocations of
btr_page_get_sure_split_rec(), the record will finally fit.
parent ab0f3d6b
......@@ -1407,8 +1407,6 @@ btr_page_get_sure_split_rec(
if (!page_rec_is_supremum(next_rec)) {
rec = next_rec;
}
} else if (page_zip) {
rec = NULL;
}
func_exit:
......@@ -1954,7 +1952,7 @@ insert_failed:
/* fprintf(stderr, "Split second round %lu\n",
buf_frame_get_page_no(page)); */
n_iterations++;
ut_ad(n_iterations < 2);
ut_ad(n_iterations < 2 || insert_page_zip);
ut_ad(!insert_will_fit || insert_page_zip);
goto func_start;
......
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