diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-14 10:10:09 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-14 10:10:09 +0200 |
commit | 4437f51682b22caaf2cf0b00de1bf6fa3edf6557 (patch) | |
tree | 4085bdff89bbd07fc020cd822b3486a201098108 /storage/innobase/include/lock0lock.h | |
parent | b88c67d5f23c6beca5604b31919ab45906dd9b39 (diff) | |
download | mariadb-git-4437f51682b22caaf2cf0b00de1bf6fa3edf6557.tar.gz |
MDEV-8869: Potential lock_sys->mutex deadlock
In wsrep brute force (BF) we have already took lock_sys and trx
mutex either on wsrep_abort_transaction() or
before wsrep_kill_victim().
Diffstat (limited to 'storage/innobase/include/lock0lock.h')
-rw-r--r-- | storage/innobase/include/lock0lock.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/innobase/include/lock0lock.h b/storage/innobase/include/lock0lock.h index 88246afebdc..eb7ab5dce9d 100644 --- a/storage/innobase/include/lock0lock.h +++ b/storage/innobase/include/lock0lock.h @@ -654,6 +654,16 @@ lock_get_type( const lock_t* lock); /*!< in: lock */ /*******************************************************************//** +Gets the trx of the lock. Non-inline version for using outside of the +lock module. +@return trx_t* */ +UNIV_INTERN +trx_t* +lock_get_trx( +/*=========*/ + const lock_t* lock); /*!< in: lock */ + +/*******************************************************************//** Gets the id of the transaction owning a lock. @return transaction id */ UNIV_INTERN |