diff options
author | bell@51.0.168.192.in-addr.arpa <> | 2005-08-11 10:20:06 +0300 |
---|---|---|
committer | bell@51.0.168.192.in-addr.arpa <> | 2005-08-11 10:20:06 +0300 |
commit | 4f26fa51841d443bd8be109abccb2e586b4eec4f (patch) | |
tree | c9467d4560732a6152dd0c42cbeb6cfe2f19e67b /sql/sql_cache.cc | |
parent | 978d67a9ea256d54072b62c09e8ad37c58aa30b8 (diff) | |
parent | 66a055b4d6e944dd3e8467b67743954000c72bba (diff) | |
download | mariadb-git-4f26fa51841d443bd8be109abccb2e586b4eec4f.tar.gz |
merge
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 366a13d59ba..2dd88f40005 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -762,7 +762,7 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used) TABLE_COUNTER_TYPE local_tables; ulong tot_length; DBUG_ENTER("Query_cache::store_query"); - if (query_cache_size == 0) + if (query_cache_size == 0 || thd->locked_tables) DBUG_VOID_RETURN; uint8 tables_type= 0; @@ -921,8 +921,8 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) bool check_tables; DBUG_ENTER("Query_cache::send_result_to_client"); - if (query_cache_size == 0 || thd->variables.query_cache_type == 0) - + if (query_cache_size == 0 || thd->locked_tables || + thd->variables.query_cache_type == 0) goto err; /* Check that we haven't forgot to reset the query cache variables */ |