summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorunknown <bell@laptop.sanja.is.com.ua>2003-10-09 09:20:01 +0300
committerunknown <bell@laptop.sanja.is.com.ua>2003-10-09 09:20:01 +0300
commitd5b92b5216c0ef7bfcdff86f3c2e8a386cbf8dd5 (patch)
treec956afc640e515ff53a96984021aea69e10ae9a2 /sql/set_var.cc
parent282343a5f94106b8477939aed8c344cdec8e86f7 (diff)
parent64f4790ea41d912ea05cd8470a8c521d045f5bd5 (diff)
downloadmariadb-git-d5b92b5216c0ef7bfcdff86f3c2e8a386cbf8dd5.tar.gz
merge
sql/set_var.cc: Auto merged
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc5
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
}