diff options
author | serg@serg.mylan <> | 2003-10-30 19:26:57 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2003-10-30 19:26:57 +0100 |
commit | 54f9d44b7f8e3e200bfba8a0494fae05643857c5 (patch) | |
tree | 65d6f2bdf4e0936294f60fb6578a4a0d97c743ce /sql/set_var.cc | |
parent | 9c4049ad125e46eb89fb97628b796a7cf07e73f3 (diff) | |
parent | 2dadbb3153f7d2f98f4ef37f7758e59e3959a831 (diff) | |
download | mariadb-git-54f9d44b7f8e3e200bfba8a0494fae05643857c5.tar.gz |
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 265d4f968e1..327bcb1a223 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -909,7 +909,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 } |