From e7500f435ff93761bb2895e01079ec73e3bf3b9e Mon Sep 17 00:00:00 2001 From: "heikki@hundin.mysql.fi" <> Date: Mon, 4 Oct 2004 19:48:41 +0300 Subject: [PATCH] lock0lock.c: Fix compiler warning --- innobase/lock/lock0lock.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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)