diff options
author | bell@sanja.is.com.ua <> | 2002-11-17 20:41:25 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-11-17 20:41:25 +0200 |
commit | 64047ea9a76060b61af89db44b8061e82ac37c20 (patch) | |
tree | b80d6d65fe86193d03454dc15109fd3076b59555 /sql/sql_cache.cc | |
parent | f2aab61a607f31b0dcefdafdfa9323479159d0ef (diff) | |
download | mariadb-git-64047ea9a76060b61af89db44b8061e82ac37c20.tar.gz |
new status variable (number of queries deleted because of low memory)
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 db601cd8a00..64c62345182 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -708,7 +708,7 @@ Query_cache::Query_cache(ulong query_cache_limit_arg, :query_cache_size(0), query_cache_limit(query_cache_limit_arg), queries_in_cache(0), hits(0), inserts(0), refused(0), - total_blocks(0), + total_blocks(0), lowmem_prunes(0), min_allocation_unit(ALIGN_SIZE(min_allocation_unit_arg)), min_result_data_size(ALIGN_SIZE(min_result_data_size_arg)), def_query_hash_size(ALIGN_SIZE(def_query_hash_size_arg)), @@ -1512,6 +1512,7 @@ my_bool Query_cache::free_old_query() if (query_block != 0) { free_query(query_block); + lowmem_prunes++; DBUG_RETURN(0); } } |