summaryrefslogtreecommitdiff
path: root/innobase/include/trx0roll.ic
blob: dfde83ac4782a05a3bdfb9dfa0013c657ca8b4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************
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);
}