mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
lock_has_to_wait() is needed in the INFORMATION_SCHEMA implementation
in order to determine which lock is blocking which. Make it non-static and put its definition in include/lock0lock.h. Approved by: Heikki (via IM)
This commit is contained in:
parent
2af39365d6
commit
147b4d43b2
2 changed files with 13 additions and 1 deletions
|
@ -519,6 +519,18 @@ lock_is_table_exclusive(
|
|||
dict_table_t* table, /* in: table */
|
||||
trx_t* trx); /* in: transaction */
|
||||
/*************************************************************************
|
||||
Checks if a lock request lock1 has to wait for request lock2. */
|
||||
|
||||
ibool
|
||||
lock_has_to_wait(
|
||||
/*=============*/
|
||||
/* out: TRUE if lock1 has to wait for lock2 to be
|
||||
removed */
|
||||
lock_t* lock1, /* in: waiting lock */
|
||||
lock_t* lock2); /* in: another lock; NOTE that it is assumed that this
|
||||
has a lock bit set on the same record as in lock1 if
|
||||
the locks are record locks */
|
||||
/*************************************************************************
|
||||
Checks that a transaction id is sensible, i.e., not in the future. */
|
||||
|
||||
ibool
|
||||
|
|
|
@ -984,7 +984,7 @@ lock_rec_has_to_wait(
|
|||
|
||||
/*************************************************************************
|
||||
Checks if a lock request lock1 has to wait for request lock2. */
|
||||
static
|
||||
|
||||
ibool
|
||||
lock_has_to_wait(
|
||||
/*=============*/
|
||||
|
|
Loading…
Add table
Reference in a new issue