diff options
author | bell@laptop.sanja.is.com.ua <> | 2003-10-09 09:20:01 +0300 |
---|---|---|
committer | bell@laptop.sanja.is.com.ua <> | 2003-10-09 09:20:01 +0300 |
commit | b5aeed824ff6a6adf8e132bb07b5aa228775c3c6 (patch) | |
tree | c956afc640e515ff53a96984021aea69e10ae9a2 /sql/set_var.cc | |
parent | e32fb9191f1ef6dff2405c3d6b3cf343f938712e (diff) | |
parent | f836a796c4824c15a0cfcd61d4c80a7014ab1c51 (diff) | |
download | mariadb-git-b5aeed824ff6a6adf8e132bb07b5aa228775c3c6.tar.gz |
merge
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 } |