diff options
author | unknown <aivanov@mysql.com> | 2006-04-07 23:58:17 +0400 |
---|---|---|
committer | unknown <aivanov@mysql.com> | 2006-04-07 23:58:17 +0400 |
commit | d111fe20ea2957e877071bf631a5e93eb4ed5253 (patch) | |
tree | 8340715f0769f9454ab699e14c946049be4b85ca /sql/sql_cursor.cc | |
parent | e147a4a2a3c3f6baa29245a222adae5bb0401b73 (diff) | |
download | mariadb-git-d111fe20ea2957e877071bf631a5e93eb4ed5253.tar.gz |
Fixed BUG#15758: "Holding adaptive search latch in
innobase_query_caching_of_table_permitted()".
Applied the patch due to Heikki Tuuri.
Also removed superfluous #ifdefs.
sql/sql_cache.cc:
Applied the patch due to Heikki Tuuri.
Query_cache::store_query(): Make InnoDB to release the adaptive
hash index latch before MySQL acquires the query cache mutex.
sql/sql_class.cc:
Removing superfluous #ifdefs (suggested by Sanja, also discussed with Serg).
sql/sql_cursor.cc:
Removing superfluous #ifdefs (suggested by Sanja, also discussed with Serg).
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r-- | sql/sql_cursor.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc index 33ad27b9d14..2784e71ccae 100644 --- a/sql/sql_cursor.cc +++ b/sql/sql_cursor.cc @@ -445,9 +445,8 @@ Sensitive_cursor::fetch(ulong num_rows) if (error == NESTED_LOOP_CURSOR_LIMIT) join->resume_nested_loop= TRUE; -#ifdef USING_TRANSACTIONS ha_release_temporary_latches(thd); -#endif + /* Grab free_list here to correctly free it in close */ thd->restore_active_arena(this, &backup_arena); |