summaryrefslogtreecommitdiff
path: root/innobase/lock
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-10-04 19:48:41 +0300
committerunknown <heikki@hundin.mysql.fi>2004-10-04 19:48:41 +0300
commitef40ba04e8f64c1bf6a3347ff70d7fea7ca6eba1 (patch)
tree76450f77d7ba5b6d78ba9319dcadc498adfd5e3b /innobase/lock
parentd36e6019285ee681ce58daec6e5299481375f799 (diff)
downloadmariadb-git-ef40ba04e8f64c1bf6a3347ff70d7fea7ca6eba1.tar.gz
lock0lock.c:
Fix compiler warning innobase/lock/lock0lock.c: Fix compiler warning
Diffstat (limited to 'innobase/lock')
-rw-r--r--innobase/lock/lock0lock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/lock/lock0lock.c b/innobase/lock/lock0lock.c
index e91be39a0cd..e6d478070b0 100644
--- a/innobase/lock/lock0lock.c
+++ b/innobase/lock/lock0lock.c
@@ -365,6 +365,15 @@ lock_deadlock_recursive(
ulint* cost); /* in/out: number of calculation steps thus
far: if this exceeds LOCK_MAX_N_STEPS_...
we return TRUE */
+/*************************************************************************
+Gets the nth bit of a record lock. */
+UNIV_INLINE
+ibool
+lock_rec_get_nth_bit(
+/*=================*/
+ /* out: TRUE if bit set */
+ lock_t* lock, /* in: record lock */
+ ulint i); /* in: index of the bit */
#define lock_mutex_enter_kernel() mutex_enter(&kernel_mutex)
#define lock_mutex_exit_kernel() mutex_exit(&kernel_mutex)