mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
branches/zip: page_cur_insert_rec_low(): Write a log record of
recompressing the page.
This commit is contained in:
parent
bb6387683a
commit
7d6a4e7058
1 changed files with 7 additions and 0 deletions
|
@ -1112,12 +1112,19 @@ use_heap:
|
|||
} 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 */
|
||||
|
|
Loading…
Reference in a new issue