summaryrefslogtreecommitdiff
path: root/storage/innobase/include/lock0lock.h
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2015-12-14 10:10:09 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2015-12-14 10:10:09 +0200
commit4437f51682b22caaf2cf0b00de1bf6fa3edf6557 (patch)
tree4085bdff89bbd07fc020cd822b3486a201098108 /storage/innobase/include/lock0lock.h
parentb88c67d5f23c6beca5604b31919ab45906dd9b39 (diff)
downloadmariadb-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.h10
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