Commit 32e6f3f2 authored by marko's avatar marko

branches/zip: btr_cur_optimistic_insert(): Fail gracefully if

reorganizing the page fails when compressed pages are enabled.
parent 57df0547
...@@ -1131,6 +1131,11 @@ calculate_sizes_again: ...@@ -1131,6 +1131,11 @@ calculate_sizes_again:
entry, index, ext, n_ext, mtr); entry, index, ext, n_ext, mtr);
if (UNIV_UNLIKELY(!*rec)) { if (UNIV_UNLIKELY(!*rec)) {
if (UNIV_LIKELY(page_zip != NULL)) {
return(DB_FAIL);
}
fputs("InnoDB: Error: cannot insert tuple ", stderr); fputs("InnoDB: Error: cannot insert tuple ", stderr);
dtuple_print(stderr, entry); dtuple_print(stderr, entry);
fputs(" into ", stderr); fputs(" into ", stderr);
......
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