mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip:
Move lock_rec_find_set_bit() from lock0priv.h to lock0lock.h. This function is needed in the INFORMATION_SCHEMA implementation which currently resides in trx/ Approved by: Marko
This commit is contained in:
parent
97b8960beb
commit
4c8d01ef84
2 changed files with 12 additions and 11 deletions
|
@ -569,6 +569,18 @@ lock_rec_hash(
|
|||
/* out: hashed value */
|
||||
ulint space, /* in: space */
|
||||
ulint page_no);/* in: page number */
|
||||
|
||||
/**************************************************************************
|
||||
Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED,
|
||||
if none found. */
|
||||
|
||||
ulint
|
||||
lock_rec_find_set_bit(
|
||||
/*==================*/
|
||||
/* out: bit index == heap number of
|
||||
the record, or ULINT_UNDEFINED if none found */
|
||||
const lock_t* lock); /* in: record lock with at least one bit set */
|
||||
|
||||
/*************************************************************************
|
||||
Gets the source table of an ALTER TABLE transaction. The table must be
|
||||
covered by an IX or IS table lock. */
|
||||
|
|
|
@ -72,17 +72,6 @@ lock_get_type(
|
|||
/* out: LOCK_TABLE or LOCK_REC */
|
||||
const lock_t* lock); /* in: lock */
|
||||
|
||||
/**************************************************************************
|
||||
Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED,
|
||||
if none found. */
|
||||
|
||||
ulint
|
||||
lock_rec_find_set_bit(
|
||||
/*==================*/
|
||||
/* out: bit index == heap number of
|
||||
the record, or ULINT_UNDEFINED if none found */
|
||||
const lock_t* lock); /* in: record lock with at least one bit set */
|
||||
|
||||
/*************************************************************************
|
||||
Gets the previous record lock set on a record. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue