diff options
author | unknown <bell@sanja.is.com.ua> | 2004-11-25 19:49:50 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-11-25 19:49:50 +0200 |
commit | 93191c739e8302c312d283169c736867cf8327b3 (patch) | |
tree | f6eff6e65503b4149f17a6775827aa490d4780fd /sql/sql_cache.cc | |
parent | 92882749589a2d3353119fb5fed7299b62d2f8e9 (diff) | |
download | mariadb-git-93191c739e8302c312d283169c736867cf8327b3.tar.gz |
new NDB test with QC
sql/sql_cache.cc:
if we removed old values in cache, then we can cache new one
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 105dcae0319..28e814a2d62 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -1093,7 +1093,6 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) DBUG_PRINT("qcache", ("Handler does not allow caching for %s.%s", table_list.db, table_list.alias)); BLOCK_UNLOCK_RD(query_block); - thd->lex->safe_to_cache_query= 0; // Don't try to cache this if (engine_data != table->engine_data()) { DBUG_PRINT("qcache", @@ -1102,6 +1101,8 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) engine_data, table->engine_data())); invalidate_table(table->db(), table->key_length()); } + else + thd->lex->safe_to_cache_query= 0; // Don't try to cache this goto err_unlock; // Parse query } else |