Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3079bd43
Commit
3079bd43
authored
Sep 14, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix release build compile failure.
parent
4d3f680c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
28 deletions
+18
-28
storage/innobase/btr/btr0btr.cc
storage/innobase/btr/btr0btr.cc
+3
-5
storage/innobase/include/btr0btr.h
storage/innobase/include/btr0btr.h
+6
-9
storage/xtradb/btr/btr0btr.cc
storage/xtradb/btr/btr0btr.cc
+3
-5
storage/xtradb/include/btr0btr.h
storage/xtradb/include/btr0btr.h
+6
-9
No files found.
storage/innobase/btr/btr0btr.cc
View file @
3079bd43
...
@@ -734,7 +734,7 @@ btr_root_block_get(
...
@@ -734,7 +734,7 @@ btr_root_block_get(
zip_size
=
dict_table_zip_size
(
index
->
table
);
zip_size
=
dict_table_zip_size
(
index
->
table
);
root_page_no
=
dict_index_get_page
(
index
);
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
)
{
if
(
!
block
)
{
index
->
table
->
is_encrypted
=
TRUE
;
index
->
table
->
is_encrypted
=
TRUE
;
...
@@ -876,7 +876,7 @@ btr_root_adjust_on_import(
...
@@ -876,7 +876,7 @@ btr_root_adjust_on_import(
return
(
DB_CORRUPTION
););
return
(
DB_CORRUPTION
););
block
=
btr_block_get
(
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
=
buf_block_get_frame
(
block
);
page_zip
=
buf_block_get_page_zip
(
block
);
page_zip
=
buf_block_get_page_zip
(
block
);
...
@@ -3500,9 +3500,7 @@ btr_level_list_remove_func(
...
@@ -3500,9 +3500,7 @@ btr_level_list_remove_func(
ulint
zip_size
,
/*!< in: compressed page size in bytes
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
or 0 for uncompressed pages */
page_t
*
page
,
/*!< in/out: page to remove */
page_t
*
page
,
/*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
dict_index_t
*
index
,
/*!< in: index tree */
const
dict_index_t
*
index
,
/*!< in: index tree */
#endif
/* UNIV_SYNC_DEBUG */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
{
{
ulint
prev_page_no
;
ulint
prev_page_no
;
...
...
storage/innobase/include/btr0btr.h
View file @
3079bd43
...
@@ -273,7 +273,7 @@ btr_block_get_func(
...
@@ -273,7 +273,7 @@ btr_block_get_func(
@return the block descriptor */
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
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 */
# else
/* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param space tablespace identifier
...
@@ -285,7 +285,7 @@ btr_block_get_func(
...
@@ -285,7 +285,7 @@ btr_block_get_func(
@return the block descriptor */
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
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 */
# endif
/* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param space tablespace identifier
...
@@ -297,7 +297,7 @@ btr_block_get_func(
...
@@ -297,7 +297,7 @@ btr_block_get_func(
@return the uncompressed page frame */
@return the uncompressed page frame */
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
mode,
(dict_index_t*)
idx,mtr))
mode,idx,mtr))
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP */
/**************************************************************//**
/**************************************************************//**
Gets the index id field of a page.
Gets the index id field of a page.
...
@@ -825,7 +825,7 @@ Removes a page from the level list of pages.
...
@@ -825,7 +825,7 @@ Removes a page from the level list of pages.
@param index in: index tree
@param index in: index tree
@param mtr in/out: mini-transaction */
@param mtr in/out: mini-transaction */
# define btr_level_list_remove(space,zip_size,page,index,mtr) \
# 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 */
#endif
/* UNIV_SYNC_DEBUG */
/*************************************************************//**
/*************************************************************//**
...
@@ -838,11 +838,8 @@ btr_level_list_remove_func(
...
@@ -838,11 +838,8 @@ btr_level_list_remove_func(
ulint
zip_size
,
/*!< in: compressed page size in bytes
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
or 0 for uncompressed pages */
page_t
*
page
,
/*!< in/out: page to remove */
page_t
*
page
,
/*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
dict_index_t
*
index
,
/*!< in: index tree */
const
dict_index_t
*
index
,
/*!< in: index tree */
mtr_t
*
mtr
);
/*!< in/out: mini-transaction */
#endif
/* UNIV_SYNC_DEBUG */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
__attribute__
((
nonnull
));
/*************************************************************//**
/*************************************************************//**
If page is the only on its level, this function moves its records to the
If page is the only on its level, this function moves its records to the
...
...
storage/xtradb/btr/btr0btr.cc
View file @
3079bd43
...
@@ -740,7 +740,7 @@ btr_root_block_get(
...
@@ -740,7 +740,7 @@ btr_root_block_get(
zip_size
=
dict_table_zip_size
(
index
->
table
);
zip_size
=
dict_table_zip_size
(
index
->
table
);
root_page_no
=
dict_index_get_page
(
index
);
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
)
{
if
(
!
block
)
{
index
->
table
->
is_encrypted
=
TRUE
;
index
->
table
->
is_encrypted
=
TRUE
;
...
@@ -896,7 +896,7 @@ btr_root_adjust_on_import(
...
@@ -896,7 +896,7 @@ btr_root_adjust_on_import(
return
(
DB_CORRUPTION
););
return
(
DB_CORRUPTION
););
block
=
btr_block_get
(
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
=
buf_block_get_frame
(
block
);
page_zip
=
buf_block_get_page_zip
(
block
);
page_zip
=
buf_block_get_page_zip
(
block
);
...
@@ -3536,9 +3536,7 @@ btr_level_list_remove_func(
...
@@ -3536,9 +3536,7 @@ btr_level_list_remove_func(
ulint
zip_size
,
/*!< in: compressed page size in bytes
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
or 0 for uncompressed pages */
page_t
*
page
,
/*!< in/out: page to remove */
page_t
*
page
,
/*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
dict_index_t
*
index
,
/*!< in: index tree */
const
dict_index_t
*
index
,
/*!< in: index tree */
#endif
/* UNIV_SYNC_DEBUG */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
{
{
ulint
prev_page_no
;
ulint
prev_page_no
;
...
...
storage/xtradb/include/btr0btr.h
View file @
3079bd43
...
@@ -276,7 +276,7 @@ btr_block_get_func(
...
@@ -276,7 +276,7 @@ btr_block_get_func(
@return the block descriptor */
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
# define btr_block_get(space,zip_size,page_no,mode,index,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
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 */
# else
/* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param space tablespace identifier
...
@@ -288,7 +288,7 @@ btr_block_get_func(
...
@@ -288,7 +288,7 @@ btr_block_get_func(
@return the block descriptor */
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
# define btr_block_get(space,zip_size,page_no,mode,idx,mtr) \
btr_block_get_func(space,zip_size,page_no,mode, \
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 */
# endif
/* UNIV_SYNC_DEBUG */
/** Gets a buffer page and declares its latching order level.
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param space tablespace identifier
...
@@ -300,7 +300,7 @@ btr_block_get_func(
...
@@ -300,7 +300,7 @@ btr_block_get_func(
@return the uncompressed page frame */
@return the uncompressed page frame */
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
# define btr_page_get(space,zip_size,page_no,mode,idx,mtr) \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
buf_block_get_frame(btr_block_get(space,zip_size,page_no, \
mode,
(dict_index_t*)
idx,mtr))
mode,idx,mtr))
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP */
/**************************************************************//**
/**************************************************************//**
Gets the index id field of a page.
Gets the index id field of a page.
...
@@ -828,7 +828,7 @@ Removes a page from the level list of pages.
...
@@ -828,7 +828,7 @@ Removes a page from the level list of pages.
@param index in: index tree
@param index in: index tree
@param mtr in/out: mini-transaction */
@param mtr in/out: mini-transaction */
# define btr_level_list_remove(space,zip_size,page,index,mtr) \
# 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 */
#endif
/* UNIV_SYNC_DEBUG */
/*************************************************************//**
/*************************************************************//**
...
@@ -841,11 +841,8 @@ btr_level_list_remove_func(
...
@@ -841,11 +841,8 @@ btr_level_list_remove_func(
ulint
zip_size
,
/*!< in: compressed page size in bytes
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
or 0 for uncompressed pages */
page_t
*
page
,
/*!< in/out: page to remove */
page_t
*
page
,
/*!< in/out: page to remove */
#ifdef UNIV_SYNC_DEBUG
dict_index_t
*
index
,
/*!< in: index tree */
const
dict_index_t
*
index
,
/*!< in: index tree */
mtr_t
*
mtr
);
/*!< in/out: mini-transaction */
#endif
/* UNIV_SYNC_DEBUG */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
__attribute__
((
nonnull
));
/*************************************************************//**
/*************************************************************//**
If page is the only on its level, this function moves its records to the
If page is the only on its level, this function moves its records to the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment