diff options
author | unknown <knielsen@knielsen-hq.org> | 2009-11-13 22:26:08 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2009-11-13 22:26:08 +0100 |
commit | 898f6f48b79d1f2c334fb559225b2b0fade5ea93 (patch) | |
tree | 84df8eecd942b650f172cbd67050ee8984c0d52b /storage/xtradb/include/read0read.ic | |
parent | 275c0a7f96502b33f763fb9388dcc1c289e4792b (diff) | |
parent | 2bde0c5e6d31583e5197e3b513f572a693161f62 (diff) | |
download | mariadb-git-898f6f48b79d1f2c334fb559225b2b0fade5ea93.tar.gz |
Merge XtraDB 8 into MariaDB.
Diffstat (limited to 'storage/xtradb/include/read0read.ic')
-rw-r--r-- | storage/xtradb/include/read0read.ic | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/storage/xtradb/include/read0read.ic b/storage/xtradb/include/read0read.ic index 9fc6af04e88..9924967cc2d 100644 --- a/storage/xtradb/include/read0read.ic +++ b/storage/xtradb/include/read0read.ic @@ -16,51 +16,52 @@ Place, Suite 330, Boston, MA 02111-1307 USA *****************************************************************************/ -/****************************************************** +/**************************************************//** +@file include/read0read.ic Cursor read Created 2/16/1997 Heikki Tuuri *******************************************************/ -/************************************************************************* -Gets the nth trx id in a read view. */ +/*********************************************************************//** +Gets the nth trx id in a read view. +@return trx id */ UNIV_INLINE -dulint +trx_id_t read_view_get_nth_trx_id( /*=====================*/ - /* out: trx id */ - read_view_t* view, /* in: read view */ - ulint n) /* in: position */ + const read_view_t* view, /*!< in: read view */ + ulint n) /*!< in: position */ { ut_ad(n < view->n_trx_ids); return(*(view->trx_ids + n)); } -/************************************************************************* +/*********************************************************************//** Sets the nth trx id in a read view. */ UNIV_INLINE void read_view_set_nth_trx_id( /*=====================*/ - read_view_t* view, /* in: read view */ - ulint n, /* in: position */ - dulint trx_id) /* in: trx id to set */ + read_view_t* view, /*!< in: read view */ + ulint n, /*!< in: position */ + trx_id_t trx_id) /*!< in: trx id to set */ { ut_ad(n < view->n_trx_ids); *(view->trx_ids + n) = trx_id; } -/************************************************************************* -Checks if a read view sees the specified transaction. */ +/*********************************************************************//** +Checks if a read view sees the specified transaction. +@return TRUE if sees */ UNIV_INLINE ibool read_view_sees_trx_id( /*==================*/ - /* out: TRUE if sees */ - read_view_t* view, /* in: read view */ - dulint trx_id) /* in: trx id */ + const read_view_t* view, /*!< in: read view */ + trx_id_t trx_id) /*!< in: trx id */ { ulint n_ids; int cmp; |