diff options
author | Kristofer Pettersson <kpettersson@mysql.com> | 2008-06-19 02:40:35 +0200 |
---|---|---|
committer | Kristofer Pettersson <kpettersson@mysql.com> | 2008-06-19 02:40:35 +0200 |
commit | 681236e10099f39e6e55d59e4ca9ec4b1c37b318 (patch) | |
tree | 9f9ed6712c8a4a8a17d912a0597167331a65737b /sql/sql_cache.h | |
parent | 07350a6c93637877daa76c6df8791b1d48e8a1b0 (diff) | |
download | mariadb-git-681236e10099f39e6e55d59e4ca9ec4b1c37b318.tar.gz |
Bug#30087 Set query_cache_size, if the value is too small, get a unclear warning
This bugs clarifies a warning message issued when the query cache data
size becomes smaller than the minium allowed size.
mysql-test/r/query_cache.result:
New warning message when a too small value has been set for query cache
size.
sql/set_var.cc:
To avoid poluting the QC API the warning messages are moved into the
QC module.
sql/share/errmsg.txt:
Changed error message so that minimal cache size always is hinted.
sql/sql_cache.cc:
Modified the warning message so that the minimal cache size always is
hinted.
Added interface method Query_cache::get_minimal_size_limit().
sql/sql_cache.h:
Modified the warning message so that the minimal cache size always is
hinted.
Added interface method Query_cache::get_minimal_size_limit().
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 34fc3a5c8d5..c5d89780af3 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -245,6 +245,8 @@ private: void free_query_internal(Query_cache_block *point); + ulong get_minimal_size_limit(); + protected: /* The following mutex is locked when searching or changing global |