~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/trx0roll.ic

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
Transaction rollback
 
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
 
6
Created 3/26/1996 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
/***********************************************************************
 
10
Returns pointer to nth element in an undo number array. */
 
11
UNIV_INLINE
 
12
trx_undo_inf_t*
 
13
trx_undo_arr_get_nth_info(
 
14
/*======================*/
 
15
                                /* out: pointer to the nth element */
 
16
        trx_undo_arr_t* arr,    /* in: undo number array */
 
17
        ulint           n)      /* in: position */
 
18
{
 
19
        ut_ad(arr);
 
20
        ut_ad(n < arr->n_cells);
 
21
 
 
22
        return(arr->infos + n);
 
23
}