1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

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().
This commit is contained in:
Kristofer Pettersson
2008-06-19 02:40:35 +02:00
parent 07350a6c93
commit 681236e100
5 changed files with 43 additions and 17 deletions

View File

@ -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