branches/zip: btr_cur_optimistic_insert(): Fail gracefully if

reorganizing the page fails when compressed pages are enabled.
This commit is contained in:
marko 2006-05-08 13:30:46 +00:00
parent 57df0547fd
commit 32e6f3f292

View file

@ -1131,6 +1131,11 @@ calculate_sizes_again:
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);