diff options
author | unknown <marko@hundin.mysql.fi> | 2004-11-03 21:32:48 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-11-03 21:32:48 +0200 |
commit | d07f96cf4987ec7b41a5d9ee3f2180e32770342a (patch) | |
tree | 0d981727fb0b5fe6050d51af4a11d69d6ea3c9d0 /innobase/include/lock0lock.h | |
parent | 37e92c9b3cc7781fa110839ebccc1bdad9ec54aa (diff) | |
download | mariadb-git-d07f96cf4987ec7b41a5d9ee3f2180e32770342a.tar.gz |
InnoDB: commit after every 10000 rows in ALTER TABLE
innobase/include/lock0lock.h:
Added function lock_get_ix_table()
innobase/include/row0mysql.h:
Added parameter "table" to row_lock_table_for_mysql()
innobase/lock/lock0lock.c:
Added function lock_get_ix_table()
innobase/row/row0mysql.c:
Added parameter "table" to row_lock_table_for_mysql()
sql/ha_innodb.cc:
write_row(): commit every 10000 rows in ALTER TABLE
sql/ha_innodb.h:
Added member variable num_write_row
Diffstat (limited to 'innobase/include/lock0lock.h')
-rw-r--r-- | innobase/include/lock0lock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/innobase/include/lock0lock.h b/innobase/include/lock0lock.h index 9f525042dcc..f8435e14d97 100644 --- a/innobase/include/lock0lock.h +++ b/innobase/include/lock0lock.h @@ -463,6 +463,14 @@ lock_rec_hash( ulint space, /* in: space */ ulint page_no);/* in: page number */ /************************************************************************* +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 */ +/************************************************************************* Checks that a transaction id is sensible, i.e., not in the future. */ ibool |