~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
*****************************************************************************/
18
18
 
19
 
/**************************************************//**
20
 
@file include/read0read.ic
 
19
/******************************************************
21
20
Cursor read
22
21
 
23
22
Created 2/16/1997 Heikki Tuuri
24
23
*******************************************************/
25
24
 
26
 
/*********************************************************************//**
27
 
Gets the nth trx id in a read view.
28
 
@return trx id */
 
25
/*************************************************************************
 
26
Gets the nth trx id in a read view. */
29
27
UNIV_INLINE
30
 
trx_id_t
 
28
dulint
31
29
read_view_get_nth_trx_id(
32
30
/*=====================*/
33
 
        const read_view_t*      view,   /*!< in: read view */
34
 
        ulint                   n)      /*!< in: position */
 
31
                                /* out: trx id */
 
32
        read_view_t*    view,   /* in: read view */
 
33
        ulint           n)      /* in: position */
35
34
{
36
35
        ut_ad(n < view->n_trx_ids);
37
36
 
38
37
        return(*(view->trx_ids + n));
39
38
}
40
39
 
41
 
/*********************************************************************//**
 
40
/*************************************************************************
42
41
Sets the nth trx id in a read view. */
43
42
UNIV_INLINE
44
43
void
45
44
read_view_set_nth_trx_id(
46
45
/*=====================*/
47
 
        read_view_t*    view,   /*!< in: read view */
48
 
        ulint           n,      /*!< in: position */
49
 
        trx_id_t        trx_id) /*!< in: trx id to set */
 
46
        read_view_t*    view,   /* in: read view */
 
47
        ulint           n,      /* in: position */
 
48
        dulint          trx_id) /* in: trx id to set */
50
49
{
51
50
        ut_ad(n < view->n_trx_ids);
52
51
 
53
52
        *(view->trx_ids + n) = trx_id;
54
53
}
55
54
 
56
 
/*********************************************************************//**
57
 
Checks if a read view sees the specified transaction.
58
 
@return TRUE if sees */
 
55
/*************************************************************************
 
56
Checks if a read view sees the specified transaction. */
59
57
UNIV_INLINE
60
58
ibool
61
59
read_view_sees_trx_id(
62
60
/*==================*/
63
 
        const read_view_t*      view,   /*!< in: read view */
64
 
        trx_id_t                trx_id) /*!< in: trx id */
 
61
                                /* out: TRUE if sees */
 
62
        read_view_t*    view,   /* in: read view */
 
63
        dulint          trx_id) /* in: trx id */
65
64
{
66
65
        ulint   n_ids;
67
66
        int     cmp;