Commit 7d6a4e70 authored by marko's avatar marko

branches/zip: page_cur_insert_rec_low(): Write a log record of

recompressing the page.
parent bb638768
......@@ -1112,12 +1112,19 @@ page_cur_insert_rec_low(
} else if (UNIV_LIKELY_NULL(page_zip_orig)) {
/* Recompress the page. */
if (!page_zip_compress(page_zip_orig, page, index)) {
/* TODO: reduce entropy by reorganizing the page */
/* Out of space: restore the page */
if (!page_zip_decompress(page_zip_orig, page)) {
ut_error; /* Memory corrupted? */
}
return(NULL);
}
/* 9. Write log record of compressing the page. */
page_zip_compress_write_log(page_zip_orig, page, mtr);
return(insert_rec);
}
/* 9. Write log record of the insert */
......
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