mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
query cache sysvar fixes
sql/share/errmsg-utf8.txt: correct the error message, as query_cache_type variable is not read-ony anymore sql/sql_cache.cc: the caller should verify that query cache resize is possible, before trying it sql/sys_vars.cc: * test if qc resize is possible in the sysvar on_check() funntion, not in the on_update() function. * use the error message that better describes the problem
This commit is contained in:
@ -1292,6 +1292,7 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
|
||||
|
||||
if (global_system_variables.query_cache_type == 0)
|
||||
{
|
||||
DBUG_ASSERT(query_cache_size_arg == 0);
|
||||
if (query_cache_size_arg != 0)
|
||||
my_error(ER_QUERY_CACHE_IS_DISABLED, MYF(0));
|
||||
DBUG_RETURN(0);
|
||||
|
Reference in New Issue
Block a user