Commit 20951b8e authored by marko's avatar marko

branches/zip: ibuf_index_page_calc_free(): Add const qualifiers.

parent 6da6eb23
...@@ -198,10 +198,10 @@ UNIV_INLINE ...@@ -198,10 +198,10 @@ UNIV_INLINE
ulint ulint
ibuf_index_page_calc_free( ibuf_index_page_calc_free(
/*======================*/ /*======================*/
/* out: value for ibuf bitmap bits */ /* out: value for ibuf bitmap bits */
ulint zip_size,/* in: compressed page size in bytes; ulint zip_size,/* in: compressed page size in bytes;
0 for uncompressed pages */ 0 for uncompressed pages */
buf_block_t* block) /* in: buffer block */ const buf_block_t* block) /* in: buffer block */
{ {
ulint max_ins_size; ulint max_ins_size;
...@@ -213,9 +213,12 @@ ibuf_index_page_calc_free( ...@@ -213,9 +213,12 @@ ibuf_index_page_calc_free(
if (!zip_size) { if (!zip_size) {
return(ibuf_index_page_calc_free_bits(0, max_ins_size)); return(ibuf_index_page_calc_free_bits(0, max_ins_size));
} else { } else {
page_zip_des_t* page_zip = buf_block_get_page_zip(block); const page_zip_des_t* page_zip;
lint zip_max_ins = page_zip_max_ins_size( lint zip_max_ins;
page_zip, FALSE/* not clustered */);
page_zip = buf_block_get_page_zip(block);
zip_max_ins = page_zip_max_ins_size(page_zip,
FALSE/* not clustered */);
if (UNIV_UNLIKELY(zip_max_ins < 0)) { if (UNIV_UNLIKELY(zip_max_ins < 0)) {
max_ins_size = 0; max_ins_size = 0;
......
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