17
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/read0read.ic
19
/******************************************************
23
22
Created 2/16/1997 Heikki Tuuri
24
23
*******************************************************/
26
/*********************************************************************//**
27
Gets the nth trx id in a read view.
25
/*************************************************************************
26
Gets the nth trx id in a read view. */
31
29
read_view_get_nth_trx_id(
32
30
/*=====================*/
33
const read_view_t* view, /*!< in: read view */
34
ulint n) /*!< in: position */
32
read_view_t* view, /* in: read view */
33
ulint n) /* in: position */
36
35
ut_ad(n < view->n_trx_ids);
38
37
return(*(view->trx_ids + n));
41
/*********************************************************************//**
40
/*************************************************************************
42
41
Sets the nth trx id in a read view. */
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 */
51
50
ut_ad(n < view->n_trx_ids);
53
52
*(view->trx_ids + n) = trx_id;
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. */
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 */