1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
unknown 6861b1bf9b A fix and a test case for Bug#12243 "MySQL Server crashes with 2
cursors (+ commit)" and Bug#11832 "Server crash with InnoDB + Cursors"
See comments to the changed files.


innobase/include/read0read.h:
  - add cursor_view_t::n_mysql_tables_in_use
innobase/read/read0read.c:
  - maintain cursor_view_t::n_mysql_tables_in_use. InnoDB
  maintains trx->n_mysql_tables_in_use to know when it can auto-commit
  a read-only statement. When this count drops to zero,
  MySQL has ended processing of such statement and InnoDB can commit.
  Cursors should not break this invariant, and should exclude the tables
  used in a cursor from the count of active tables.
  When a cursor is closed, the number of its tables is added back, 
  to ensure that close_thread_tables->unlock_external->
  ha_innobase::external_lock(F_UNLCK) won't drop the count in trx 
  below zero.
innobase/row/row0sel.c:
  - remove the restoration of the global read view from 
  row_search_for_mysql: MySQL may call row_search_for_mysql
  more than once when fetching a row for a cursor (e.g. if there
  is a WHERE clause that filters out some rows).
sql/ha_innodb.cc:
  - add more verbose printout for the case when we close an InnoDB
  connection without priorlly issuing a commit or rollback. The problem
  should be investigated.
tests/mysql_client_test.c:
  - add a test case for Bug#12243 "MySQL Server crashes with 2 cursors 
  (+ commit)"
2005-08-10 18:36:13 +04:00
..
2005-07-19 16:32:38 -07:00
2005-08-03 17:09:21 +03:00
2005-07-25 12:57:23 -07:00
2005-07-04 16:01:04 +03:00
2005-08-03 03:47:07 +00:00
2005-06-07 00:31:53 +03:00
2005-08-07 15:10:06 -07:00
2005-07-05 11:21:47 +03:00
2005-08-07 21:30:46 +00:00
2005-06-07 00:31:53 +03:00
2005-07-31 12:49:55 +03:00
2005-05-06 11:39:30 +03:00
2005-07-31 12:49:55 +03:00
2005-07-06 10:16:36 +02:00
2005-06-08 21:56:22 +05:00
2005-08-04 16:27:53 +05:00
2005-06-07 00:31:53 +03:00
2005-06-07 00:31:53 +03:00
2005-07-22 08:11:23 +02:00
2005-08-03 10:12:31 +00:00
2005-08-03 03:47:07 +00:00
2005-05-18 19:00:21 +03:00
2005-07-28 16:10:14 +03:00
2005-06-07 00:31:53 +03:00
2005-05-26 21:01:55 +02:00
2005-05-20 16:34:59 -05:00
2005-07-05 11:38:05 +03:00
2005-08-03 03:47:07 +00:00
2005-05-19 15:20:10 +02:00
2005-08-10 16:02:36 +05:00
2005-03-16 04:32:47 +03:00
2005-06-07 00:31:53 +03:00
2005-05-06 11:39:30 +03:00
2005-08-03 03:47:07 +00:00
2005-07-28 17:09:54 +03:00
2005-07-31 12:49:55 +03:00
2005-06-01 16:35:09 +03:00
2005-07-28 17:09:54 +03:00