From 4c8d01ef84857eaf828914fc2205c2dd6c065b4a Mon Sep 17 00:00:00 2001 From: vasil <> Date: Mon, 3 Sep 2007 09:08:25 +0000 Subject: [PATCH] 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 --- include/lock0lock.h | 12 ++++++++++++ include/lock0priv.h | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/lock0lock.h b/include/lock0lock.h index c1f59c85128..9114576cb0e 100644 --- a/include/lock0lock.h +++ b/include/lock0lock.h @@ -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. */ diff --git a/include/lock0priv.h b/include/lock0priv.h index 76b59d1968c..b408574cab9 100644 --- a/include/lock0priv.h +++ b/include/lock0priv.h @@ -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. */