Commit 0fb06a68 authored by unknown's avatar unknown

row0mysql.c, row0mysql.h:

  Backport of bug fix in 4.0: do not x-lock rows under LOCK TABLES READ unless the table is a temp table


innobase/include/row0mysql.h:
  Backport of bug fix in 4.0: do not x-lock rows under LOCK TABLES READ unless the table is a temp table
innobase/row/row0mysql.c:
  Backport of bug fix in 4.0: do not x-lock rows under LOCK TABLES READ unless the table is a temp table
parent 7bc917e9
...@@ -393,6 +393,7 @@ struct row_prebuilt_struct { ...@@ -393,6 +393,7 @@ struct row_prebuilt_struct {
an SQL statement: we may have to set an SQL statement: we may have to set
an intention lock on the table, an intention lock on the table,
create a consistent read view etc. */ create a consistent read view etc. */
ibool mysql_has_locked;
ibool clust_index_was_generated; ibool clust_index_was_generated;
/* if the user did not define a /* if the user did not define a
primary key in MySQL, then Innobase primary key in MySQL, then Innobase
......
...@@ -320,6 +320,7 @@ row_create_prebuilt( ...@@ -320,6 +320,7 @@ row_create_prebuilt(
prebuilt->trx = NULL; prebuilt->trx = NULL;
prebuilt->sql_stat_start = TRUE; prebuilt->sql_stat_start = TRUE;
prebuilt->mysql_has_locked = FALSE;
prebuilt->index = NULL; prebuilt->index = NULL;
prebuilt->n_template = 0; prebuilt->n_template = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment