Commit 058a71f2 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Applying InnoDB snapshot

Detailed revision comments:

r6277 | marko | 2009-12-08 11:13:36 +0200 (Tue, 08 Dec 2009) | 1 line
branches/zip: fsp0fsp.c: Add some missing in/out and const qualifiers.
parent 97108542
...@@ -386,11 +386,11 @@ UNIV_INLINE ...@@ -386,11 +386,11 @@ UNIV_INLINE
ibool ibool
xdes_get_bit( xdes_get_bit(
/*=========*/ /*=========*/
xdes_t* descr, /*!< in: descriptor */ const xdes_t* descr, /*!< in: descriptor */
ulint bit, /*!< in: XDES_FREE_BIT or XDES_CLEAN_BIT */ ulint bit, /*!< in: XDES_FREE_BIT or XDES_CLEAN_BIT */
ulint offset, /*!< in: page offset within extent: ulint offset, /*!< in: page offset within extent:
0 ... FSP_EXTENT_SIZE - 1 */ 0 ... FSP_EXTENT_SIZE - 1 */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
ulint index; ulint index;
ulint byte_index; ulint byte_index;
...@@ -527,8 +527,8 @@ UNIV_INLINE ...@@ -527,8 +527,8 @@ UNIV_INLINE
ulint ulint
xdes_get_n_used( xdes_get_n_used(
/*============*/ /*============*/
xdes_t* descr, /*!< in: descriptor */ const xdes_t* descr, /*!< in: descriptor */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
ulint i; ulint i;
ulint count = 0; ulint count = 0;
...@@ -551,8 +551,8 @@ UNIV_INLINE ...@@ -551,8 +551,8 @@ UNIV_INLINE
ibool ibool
xdes_is_free( xdes_is_free(
/*=========*/ /*=========*/
xdes_t* descr, /*!< in: descriptor */ const xdes_t* descr, /*!< in: descriptor */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
if (0 == xdes_get_n_used(descr, mtr)) { if (0 == xdes_get_n_used(descr, mtr)) {
...@@ -569,8 +569,8 @@ UNIV_INLINE ...@@ -569,8 +569,8 @@ UNIV_INLINE
ibool ibool
xdes_is_full( xdes_is_full(
/*=========*/ /*=========*/
xdes_t* descr, /*!< in: descriptor */ const xdes_t* descr, /*!< in: descriptor */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
if (FSP_EXTENT_SIZE == xdes_get_n_used(descr, mtr)) { if (FSP_EXTENT_SIZE == xdes_get_n_used(descr, mtr)) {
...@@ -586,7 +586,7 @@ UNIV_INLINE ...@@ -586,7 +586,7 @@ UNIV_INLINE
void void
xdes_set_state( xdes_set_state(
/*===========*/ /*===========*/
xdes_t* descr, /*!< in: descriptor */ xdes_t* descr, /*!< in/out: descriptor */
ulint state, /*!< in: state to set */ ulint state, /*!< in: state to set */
mtr_t* mtr) /*!< in: mtr handle */ mtr_t* mtr) /*!< in: mtr handle */
{ {
...@@ -605,8 +605,8 @@ UNIV_INLINE ...@@ -605,8 +605,8 @@ UNIV_INLINE
ulint ulint
xdes_get_state( xdes_get_state(
/*===========*/ /*===========*/
xdes_t* descr, /*!< in: descriptor */ const xdes_t* descr, /*!< in: descriptor */
mtr_t* mtr) /*!< in: mtr handle */ mtr_t* mtr) /*!< in: mtr handle */
{ {
ulint state; ulint state;
...@@ -705,7 +705,7 @@ UNIV_INLINE ...@@ -705,7 +705,7 @@ UNIV_INLINE
xdes_t* xdes_t*
xdes_get_descriptor_with_space_hdr( xdes_get_descriptor_with_space_hdr(
/*===============================*/ /*===============================*/
fsp_header_t* sp_header,/*!< in: space header, x-latched */ fsp_header_t* sp_header,/*!< in/out: space header, x-latched */
ulint space, /*!< in: space id */ ulint space, /*!< in: space id */
ulint offset, /*!< in: page offset; ulint offset, /*!< in: page offset;
if equal to the free limit, if equal to the free limit,
...@@ -1342,7 +1342,7 @@ fsp_fill_free_list( ...@@ -1342,7 +1342,7 @@ fsp_fill_free_list(
descriptor page and ibuf bitmap page; descriptor page and ibuf bitmap page;
then we do not allocate more extents */ then we do not allocate more extents */
ulint space, /*!< in: space */ ulint space, /*!< in: space */
fsp_header_t* header, /*!< in: space header */ fsp_header_t* header, /*!< in/out: space header */
mtr_t* mtr) /*!< in: mtr */ mtr_t* mtr) /*!< in: mtr */
{ {
ulint limit; ulint limit;
......
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