mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
24 lines
594 B
Text
24 lines
594 B
Text
|
/******************************************************
|
||
|
Transaction rollback
|
||
|
|
||
|
(c) 1996 Innobase Oy
|
||
|
|
||
|
Created 3/26/1996 Heikki Tuuri
|
||
|
*******************************************************/
|
||
|
|
||
|
/***********************************************************************
|
||
|
Returns pointer to nth element in an undo number array. */
|
||
|
UNIV_INLINE
|
||
|
trx_undo_inf_t*
|
||
|
trx_undo_arr_get_nth_info(
|
||
|
/*======================*/
|
||
|
/* out: pointer to the nth element */
|
||
|
trx_undo_arr_t* arr, /* in: undo number array */
|
||
|
ulint n) /* in: position */
|
||
|
{
|
||
|
ut_ad(arr);
|
||
|
ut_ad(n < arr->n_cells);
|
||
|
|
||
|
return(arr->infos + n);
|
||
|
}
|