summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-10-26 19:38:41 +0200
committerunknown <bell@sanja.is.com.ua>2003-10-26 19:38:41 +0200
commitc4aaca9f9727289ea50ba9a8a49d0ffdcea8a867 (patch)
tree2b0f1947bcb4f400d38c3626a4221e1d1eb8f7e5 /sql/set_var.cc
parentf081a5413068a1491a25b60e0cee5a6619fbfa1e (diff)
parenta92f47e121976ce25592661e96c3781fbc6beab5 (diff)
downloadmariadb-git-c4aaca9f9727289ea50ba9a8a49d0ffdcea8a867.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 d09544697ea..2d200292726 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
}