~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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
}