mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
branches/zip: btr_store_big_rec_extern_fields(): Release the uncompressed
page frame to save memory.
This commit is contained in:
parent
82f4ef9596
commit
ccd2090964
1 changed files with 8 additions and 1 deletions
|
@ -3776,7 +3776,6 @@ btr_store_big_rec_extern_fields(
|
|||
== page_zip_get_size(page_zip));
|
||||
memcpy(blob_page_zip->data, page,
|
||||
page_zip_get_size(page_zip));
|
||||
/* TODO: retain blob_page_zip, release page */
|
||||
|
||||
if (err == Z_OK && prev_page_no != FIL_NULL) {
|
||||
|
||||
|
@ -3823,6 +3822,14 @@ next_zip_page:
|
|||
|
||||
mtr_commit(&mtr);
|
||||
|
||||
/* Release the uncompressed page frame
|
||||
to save memory. */
|
||||
mutex_enter(&buf_pool->mutex);
|
||||
mutex_enter(&block->mutex);
|
||||
buf_LRU_free_block(&block->page, FALSE);
|
||||
mutex_exit(&buf_pool->mutex);
|
||||
mutex_exit(&block->mutex);
|
||||
|
||||
if (err == Z_STREAM_END) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue