Commit 2dc343f6 authored by marko's avatar marko

branches/zip: Remove unused parameter "index" of page_mem_free().

parent 8848914b
...@@ -604,7 +604,6 @@ page_mem_free( ...@@ -604,7 +604,6 @@ page_mem_free(
page_zip_des_t* page_zip,/* in/out: compressed page with at least page_zip_des_t* page_zip,/* in/out: compressed page with at least
6 bytes available, or NULL */ 6 bytes available, or NULL */
rec_t* rec, /* in: pointer to the (origin of) record */ rec_t* rec, /* in: pointer to the (origin of) record */
dict_index_t* index, /* in: record descriptor */
const ulint* offsets);/* in: array returned by rec_get_offsets() */ const ulint* offsets);/* in: array returned by rec_get_offsets() */
/************************************************************** /**************************************************************
The index page creation function. */ The index page creation function. */
......
...@@ -909,13 +909,12 @@ page_mem_free( ...@@ -909,13 +909,12 @@ page_mem_free(
page_zip_des_t* page_zip,/* in/out: compressed page with at least page_zip_des_t* page_zip,/* in/out: compressed page with at least
6 bytes available, or NULL */ 6 bytes available, or NULL */
rec_t* rec, /* in: pointer to the (origin of) record */ rec_t* rec, /* in: pointer to the (origin of) record */
dict_index_t* index, /* in: record descriptor */
const ulint* offsets)/* in: array returned by rec_get_offsets() */ const ulint* offsets)/* in: array returned by rec_get_offsets() */
{ {
rec_t* free; rec_t* free;
ulint garbage; ulint garbage;
ut_ad(rec_offs_validate(rec, index, offsets)); ut_ad(rec_offs_validate(rec, NULL, offsets));
ut_ad(!rec_offs_comp(offsets) == !page_rec_is_comp(rec)); ut_ad(!rec_offs_comp(offsets) == !page_rec_is_comp(rec));
free = page_header_get_ptr(page, PAGE_FREE); free = page_header_get_ptr(page, PAGE_FREE);
......
...@@ -1534,7 +1534,7 @@ page_cur_delete_rec( ...@@ -1534,7 +1534,7 @@ page_cur_delete_rec(
page_dir_slot_set_n_owned(cur_dir_slot, page_zip, cur_n_owned - 1); page_dir_slot_set_n_owned(cur_dir_slot, page_zip, cur_n_owned - 1);
/* 6. Free the memory occupied by the record */ /* 6. Free the memory occupied by the record */
page_mem_free(page, page_zip, current_rec, index, offsets); page_mem_free(page, page_zip, current_rec, offsets);
page_header_set_field(page, page_zip, PAGE_N_RECS, page_header_set_field(page, page_zip, PAGE_N_RECS,
(ulint)(page_get_n_recs(page) - 1)); (ulint)(page_get_n_recs(page) - 1));
if (UNIV_LIKELY_NULL(page_zip)) { if (UNIV_LIKELY_NULL(page_zip)) {
......
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