diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2009-09-08 20:04:58 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2009-09-08 20:04:58 +0400 |
commit | 241c1977dd1d0614c4d6400fa981e7f7facbd153 (patch) | |
tree | 86e5f9ce0d8918d98f3fde0a8bf6939815c7af65 /storage/xtradb/include/trx0trx.ic | |
parent | 29f0dcb56337a3e352ad7a70dcff6b25bb605325 (diff) | |
parent | 56bca79f6a2ca554fb59a208e2b160dcb905113d (diff) | |
download | mariadb-git-241c1977dd1d0614c4d6400fa981e7f7facbd153.tar.gz |
Merge xtradb-7 -> MariaDB
Diffstat (limited to 'storage/xtradb/include/trx0trx.ic')
-rw-r--r-- | storage/xtradb/include/trx0trx.ic | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/storage/xtradb/include/trx0trx.ic b/storage/xtradb/include/trx0trx.ic index 6da89f002fe..51212539c09 100644 --- a/storage/xtradb/include/trx0trx.ic +++ b/storage/xtradb/include/trx0trx.ic @@ -55,64 +55,6 @@ trx_start_if_not_started_low( } } -/***************************************************************** -Resets the new record lock info in a transaction struct. */ -UNIV_INLINE -void -trx_reset_new_rec_lock_info( -/*========================*/ - trx_t* trx) /* in: transaction struct */ -{ - trx->new_rec_locks[0] = NULL; - trx->new_rec_locks[1] = NULL; -} - -/***************************************************************** -Registers that we have set a new record lock on an index. We only have space -to store 2 indexes! If this is called to store more than 2 indexes after -trx_reset_new_rec_lock_info(), then this function does nothing. */ -UNIV_INLINE -void -trx_register_new_rec_lock( -/*======================*/ - trx_t* trx, /* in: transaction struct */ - dict_index_t* index) /* in: trx sets a new record lock on this - index */ -{ - if (trx->new_rec_locks[0] == NULL) { - trx->new_rec_locks[0] = index; - - return; - } - - if (trx->new_rec_locks[0] == index) { - - return; - } - - if (trx->new_rec_locks[1] != NULL) { - - return; - } - - trx->new_rec_locks[1] = index; -} - -/***************************************************************** -Checks if trx has set a new record lock on an index. */ -UNIV_INLINE -ibool -trx_new_rec_locks_contain( -/*======================*/ - /* out: TRUE if trx has set a new record lock - on index */ - trx_t* trx, /* in: transaction struct */ - dict_index_t* index) /* in: index */ -{ - return(trx->new_rec_locks[0] == index - || trx->new_rec_locks[1] == index); -} - /******************************************************************** Retrieves the error_info field from a trx. */ UNIV_INLINE |