Commit a2c5231e authored by Sergey Vojtovich's avatar Sergey Vojtovich

Applying InnoDB snapshot

Detailed revision comments:

r6639 | marko | 2010-02-10 13:11:04 +0200 (Wed, 10 Feb 2010) | 1 line
branches/zip: trx_rseg_create(): Unused function, remove.
parent 709e5a98
...@@ -114,17 +114,6 @@ trx_rseg_list_and_array_init( ...@@ -114,17 +114,6 @@ trx_rseg_list_and_array_init(
/*=========================*/ /*=========================*/
trx_sysf_t* sys_header, /*!< in: trx system header */ trx_sysf_t* sys_header, /*!< in: trx system header */
mtr_t* mtr); /*!< in: mtr */ mtr_t* mtr); /*!< in: mtr */
/****************************************************************//**
Creates a new rollback segment to the database.
@return the created segment object, NULL if fail */
UNIV_INTERN
trx_rseg_t*
trx_rseg_create(
/*============*/
ulint space, /*!< in: space id */
ulint max_size, /*!< in: max size in pages */
ulint* id, /*!< out: rseg id */
mtr_t* mtr); /*!< in: mtr */
/*************************************************************************** /***************************************************************************
Free's an instance of the rollback segment in memory. */ Free's an instance of the rollback segment in memory. */
UNIV_INTERN UNIV_INTERN
......
...@@ -286,39 +286,3 @@ trx_rseg_list_and_array_init( ...@@ -286,39 +286,3 @@ trx_rseg_list_and_array_init(
} }
} }
} }
/****************************************************************//**
Creates a new rollback segment to the database.
@return the created segment object, NULL if fail */
UNIV_INTERN
trx_rseg_t*
trx_rseg_create(
/*============*/
ulint space, /*!< in: space id */
ulint max_size, /*!< in: max size in pages */
ulint* id, /*!< out: rseg id */
mtr_t* mtr) /*!< in: mtr */
{
ulint flags;
ulint zip_size;
ulint page_no;
trx_rseg_t* rseg;
mtr_x_lock(fil_space_get_latch(space, &flags), mtr);
zip_size = dict_table_flags_to_zip_size(flags);
mutex_enter(&kernel_mutex);
page_no = trx_rseg_header_create(space, zip_size, max_size, id, mtr);
if (page_no == FIL_NULL) {
mutex_exit(&kernel_mutex);
return(NULL);
}
rseg = trx_rseg_mem_create(*id, space, zip_size, page_no, mtr);
mutex_exit(&kernel_mutex);
return(rseg);
}
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