1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
unknown 0f99fe728e Added support for a LOCK TABLES...WHERE ENGINE = InnoDB query which sets
transactional table locks to tables mentioned in the query. These locks
are released at the end of the transaction automatically.
This is fix for bugs #5655, #5998 and issue #3762.




innobase/include/lock0lock.h:
  Added a new lock type LOCK_TABLE_TRANSACTIONAL.
innobase/include/trx0trx.h:
  Added a varible to store the number of transactional table locks
  reserved by the transaction and stored in the trx_locks list.
innobase/lock/lock0lock.c:
  Added a lock type LOCK_TABLE_TRANSACTIONAL.
innobase/row/row0mysql.c:
  Added support for a transactional table lock.
innobase/trx/trx0roll.c:
  Make compiler happy and format function.
innobase/trx/trx0trx.c:
  Added information about number of explicit and transactional table locks in
  the innodb monitor.
sql/ha_innodb.cc:
  Added support for a LOCK_TABLE_TRANSACTIONAL table lock (SQLCOM_LOCK_TABLES_TRANSACTIONAL).
  Transactional table locks are taken in the function ::transactional_table_lock().
sql/ha_innodb.h:
  Added prototype for a function trandactional_table_lock().
sql/handler.h:
  Added prototype for a virtual function transactional_table_lock().
  Handler does not need to implement this function.
sql/lock.cc:
  Added a function transactional_lock_tables() to lock all tables in the list
  with transactional table lock. These locks can cause a deadlock and
  this error should be reported back to user.
sql/mysql_priv.h:
  Added prototype for a function transactional_lock_tables().
sql/sql_lex.h:
  Added SQLCOM_LOCK_TABLES_TRANSACTIONAL command.
sql/sql_parse.cc:
  Added SQLCOM_LOCK_TABLES_TRANSACTIONAL command.
sql/sql_yacc.yy:
  Added parsing rules for a LOCK TABLES...WHERE ENGINE = x;
2004-12-09 11:10:45 +02:00
..
2004-11-27 23:07:30 +01:00
2004-11-30 10:10:40 -08:00
2004-11-28 15:53:17 +01:00
2004-09-01 04:12:09 +03:00
2004-10-29 19:26:52 +03:00
2004-11-17 20:07:13 +01:00
2004-11-17 18:04:36 +01:00
2004-11-24 12:34:44 -08:00
2004-11-22 21:33:15 +01:00
2004-11-28 20:42:04 +01:00
2004-11-29 22:47:50 +01:00
2004-09-06 15:14:10 +03:00
2004-11-28 21:55:38 +01:00
2004-11-28 15:53:17 +01:00
2004-11-12 15:36:31 +02:00
2004-11-13 19:45:36 +02:00
2004-11-21 20:08:12 +02:00
2004-11-12 15:36:31 +02:00
2004-11-20 18:36:41 +01:00
2004-11-20 18:36:41 +01:00
2004-11-12 15:36:31 +02:00
2004-11-28 15:53:17 +01:00
2004-10-11 10:47:08 +03:00
2004-11-20 18:36:41 +01:00
2004-11-16 00:04:12 +01:00
2004-11-13 19:45:36 +02:00
2004-10-29 19:26:52 +03:00
2004-11-12 12:28:34 +01:00
2004-11-28 21:02:30 +03:00
2004-11-21 20:08:12 +02:00
2004-10-29 19:26:52 +03:00
2004-11-12 15:36:31 +02:00
2004-11-24 17:22:29 +01:00
2004-11-12 15:36:31 +02:00
2004-10-29 19:26:52 +03:00
2004-11-12 15:36:31 +02:00
2004-09-06 15:14:10 +03:00
2004-11-28 20:42:04 +01:00
2004-11-12 14:34:00 +02:00
2004-11-27 23:07:30 +01:00
2004-10-29 19:26:52 +03:00
2004-10-29 19:26:52 +03:00
2004-11-24 17:22:29 +01:00
2004-11-21 20:08:12 +02:00
2004-11-05 17:29:47 +02:00
2004-11-22 21:33:15 +01:00
2004-11-12 15:36:31 +02:00
2004-11-25 02:23:13 +02:00
2004-11-25 02:23:13 +02:00
2004-11-28 15:53:17 +01:00
2004-11-25 02:23:13 +02:00
2004-11-25 02:23:13 +02:00
2004-11-12 15:36:31 +02:00
2004-11-29 22:47:50 +01:00
2004-11-24 12:49:00 +03:00
2004-11-28 15:53:17 +01:00
2004-11-28 15:53:17 +01:00
2004-11-12 15:36:31 +02:00
2004-11-26 12:28:12 +02:00
2004-11-25 02:23:13 +02:00
2004-10-06 19:14:33 +03:00
2004-11-08 01:13:54 +02:00
2004-10-29 19:26:52 +03:00
2004-10-29 19:26:52 +03:00
2004-11-12 15:36:31 +02:00