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 @@ btr_cur_optimistic_insert(
entry, index, ext, n_ext, mtr);
if (UNIV_UNLIKELY(!*rec)) {
if (UNIV_LIKELY(page_zip != NULL)) {
return(DB_FAIL);
}
fputs("InnoDB: Error: cannot insert tuple ", stderr);
dtuple_print(stderr, entry);
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