summaryrefslogtreecommitdiff
path: root/innobase/lock/lock0lock.c
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-11-03 21:32:48 +0200
committermarko@hundin.mysql.fi <>2004-11-03 21:32:48 +0200
commitfd069e2bb36a3c1c1f26d65dd298b07e6d83ac8b (patch)
tree0d981727fb0b5fe6050d51af4a11d69d6ea3c9d0 /innobase/lock/lock0lock.c
parent97ecfced53f9a157a25c7ffc41a4a18cb27d7ba3 (diff)
downloadmariadb-git-fd069e2bb36a3c1c1f26d65dd298b07e6d83ac8b.tar.gz
InnoDB: commit after every 10000 rows in ALTER TABLE
Diffstat (limited to 'innobase/lock/lock0lock.c')
-rw-r--r--innobase/lock/lock0lock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/innobase/lock/lock0lock.c b/innobase/lock/lock0lock.c
index 68073647248..6f2d58b72c3 100644
--- a/innobase/lock/lock0lock.c
+++ b/innobase/lock/lock0lock.c
@@ -395,6 +395,19 @@ lock_rec_get_nth_bit(
return(ut_bit_get_nth(b, bit_index));
}
+/*************************************************************************
+Gets the table covered by an IX table lock. */
+
+dict_table_t*
+lock_get_ix_table(
+/*==============*/
+ /* out: the table covered by the lock */
+ lock_t* lock) /* in: table lock */
+{
+ ut_a(lock->type_mode == (LOCK_TABLE | LOCK_IX));
+ return(lock->un_member.tab_lock.table);
+}
+
/*************************************************************************/
#define lock_mutex_enter_kernel() mutex_enter(&kernel_mutex)