Skip to content

Commit

Permalink
Fix release build compile failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lindström committed Sep 14, 2015
1 parent 4d3f680 commit 3079bd4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 28 deletions.
8 changes: 3 additions & 5 deletions storage/innobase/btr/btr0btr.cc
Expand Up @@ -734,7 +734,7 @@ btr_root_block_get(
zip_size = dict_table_zip_size(index->table);
root_page_no = dict_index_get_page(index);

block = btr_block_get(space, zip_size, root_page_no, mode, index, mtr);
block = btr_block_get(space, zip_size, root_page_no, mode, (dict_index_t*)index, mtr);

if (!block) {
index->table->is_encrypted = TRUE;
Expand Down Expand Up @@ -876,7 +876,7 @@ btr_root_adjust_on_import(
return(DB_CORRUPTION););

block = btr_block_get(
space_id, zip_size, root_page_no, RW_X_LATCH, index, &mtr);
space_id, zip_size, root_page_no, RW_X_LATCH, (dict_index_t*)index, &mtr);

page = buf_block_get_frame(block);
page_zip = buf_block_get_page_zip(block);
Expand Down Expand Up @@ -3500,9 +3500,7 @@ btr_level_list_remove_func(
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
page_t* page, /*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
const dict_index_t* index, /*!< in: index tree */
#endif /* UNIV_SYNC_DEBUG */
dict_index_t* index, /*!< in: index tree */
mtr_t* mtr) /*!< in/out: mini-transaction */
{
ulint prev_page_no;
Expand Down
15 changes: 6 additions & 9 deletions storage/innobase/include/btr0btr.h
Expand Up @@ -273,7 +273,7 @@ btr_block_get_func(
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
__FILE__,__LINE__,(dict_index_t*)index,mtr)
__FILE__,__LINE__,index,mtr)
# else /* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
Expand All @@ -285,7 +285,7 @@ btr_block_get_func(
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
__FILE__,__LINE__,(dict_index_t*)idx,mtr)
__FILE__,__LINE__,idx,mtr)
# endif /* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
Expand All @@ -297,7 +297,7 @@ btr_block_get_func(
@return the uncompressed page frame */
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
mode,(dict_index_t*)idx,mtr))
mode,idx,mtr))
#endif /* !UNIV_HOTBACKUP */
/**************************************************************//**
Gets the index id field of a page.
Expand Down Expand Up @@ -825,7 +825,7 @@ Removes a page from the level list of pages.
@param index in: index tree
@param mtr in/out: mini-transaction */
# define btr_level_list_remove(space,zip_size,page,index,mtr) \
btr_level_list_remove_func(space,zip_size,page,mtr)
btr_level_list_remove_func(space,zip_size,page,index,mtr)
#endif /* UNIV_SYNC_DEBUG */

/*************************************************************//**
Expand All @@ -838,11 +838,8 @@ btr_level_list_remove_func(
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
page_t* page, /*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
const dict_index_t* index, /*!< in: index tree */
#endif /* UNIV_SYNC_DEBUG */
mtr_t* mtr) /*!< in/out: mini-transaction */
__attribute__((nonnull));
dict_index_t* index, /*!< in: index tree */
mtr_t* mtr); /*!< in/out: mini-transaction */

/*************************************************************//**
If page is the only on its level, this function moves its records to the
Expand Down
8 changes: 3 additions & 5 deletions storage/xtradb/btr/btr0btr.cc
Expand Up @@ -740,7 +740,7 @@ btr_root_block_get(
zip_size = dict_table_zip_size(index->table);
root_page_no = dict_index_get_page(index);

block = btr_block_get(space, zip_size, root_page_no, mode, index, mtr);
block = btr_block_get(space, zip_size, root_page_no, mode, (dict_index_t*)index, mtr);

if (!block) {
index->table->is_encrypted = TRUE;
Expand Down Expand Up @@ -896,7 +896,7 @@ btr_root_adjust_on_import(
return(DB_CORRUPTION););

block = btr_block_get(
space_id, zip_size, root_page_no, RW_X_LATCH, index, &mtr);
space_id, zip_size, root_page_no, RW_X_LATCH, (dict_index_t*)index, &mtr);

page = buf_block_get_frame(block);
page_zip = buf_block_get_page_zip(block);
Expand Down Expand Up @@ -3536,9 +3536,7 @@ btr_level_list_remove_func(
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
page_t* page, /*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
const dict_index_t* index, /*!< in: index tree */
#endif /* UNIV_SYNC_DEBUG */
dict_index_t* index, /*!< in: index tree */
mtr_t* mtr) /*!< in/out: mini-transaction */
{
ulint prev_page_no;
Expand Down
15 changes: 6 additions & 9 deletions storage/xtradb/include/btr0btr.h
Expand Up @@ -276,7 +276,7 @@ btr_block_get_func(
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
__FILE__,__LINE__,(dict_index_t*)index,mtr)
__FILE__,__LINE__,index,mtr)
# else /* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
Expand All @@ -288,7 +288,7 @@ btr_block_get_func(
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
__FILE__,__LINE__,(dict_index_t*)idx,mtr)
__FILE__,__LINE__,idx,mtr)
# endif /* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
Expand All @@ -300,7 +300,7 @@ btr_block_get_func(
@return the uncompressed page frame */
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
mode,(dict_index_t*)idx,mtr))
mode,idx,mtr))
#endif /* !UNIV_HOTBACKUP */
/**************************************************************//**
Gets the index id field of a page.
Expand Down Expand Up @@ -828,7 +828,7 @@ Removes a page from the level list of pages.
@param index in: index tree
@param mtr in/out: mini-transaction */
# define btr_level_list_remove(space,zip_size,page,index,mtr) \
btr_level_list_remove_func(space,zip_size,page,mtr)
btr_level_list_remove_func(space,zip_size,page,index,mtr)
#endif /* UNIV_SYNC_DEBUG */

/*************************************************************//**
Expand All @@ -841,11 +841,8 @@ btr_level_list_remove_func(
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
page_t* page, /*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
const dict_index_t* index, /*!< in: index tree */
#endif /* UNIV_SYNC_DEBUG */
mtr_t* mtr) /*!< in/out: mini-transaction */
__attribute__((nonnull));
dict_index_t* index, /*!< in: index tree */
mtr_t* mtr); /*!< in/out: mini-transaction */

/*************************************************************//**
If page is the only on its level, this function moves its records to the
Expand Down

0 comments on commit 3079bd4

Please sign in to comment.