diff options
author | unknown <bell@laptop.sanja.is.com.ua> | 2003-10-09 09:20:01 +0300 |
---|---|---|
committer | unknown <bell@laptop.sanja.is.com.ua> | 2003-10-09 09:20:01 +0300 |
commit | d5b92b5216c0ef7bfcdff86f3c2e8a386cbf8dd5 (patch) | |
tree | c956afc640e515ff53a96984021aea69e10ae9a2 /sql/set_var.cc | |
parent | 282343a5f94106b8477939aed8c344cdec8e86f7 (diff) | |
parent | 64f4790ea41d912ea05cd8470a8c521d045f5bd5 (diff) | |
download | mariadb-git-d5b92b5216c0ef7bfcdff86f3c2e8a386cbf8dd5.tar.gz |
merge
sql/set_var.cc:
Auto merged
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index eb456b0745f..3cb5ff252c0 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -802,7 +802,12 @@ static void fix_net_retry_count(THD *thd __attribute__(unused), static void fix_query_cache_size(THD *thd, enum_var_type type) { #ifdef HAVE_QUERY_CACHE + ulong requested= query_cache_size; query_cache.resize(query_cache_size); + if (requested != query_cache_size) + push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, + ER_WARN_QC_RESIZE, ER(ER_WARN_QC_RESIZE), + requested, query_cache_size); #endif } |