MXS-1475 Introduce variable @maxscale.cache.enabled

With the variable @maxscale.cache.enabled the caching can be
enabled/disabled at runtime.

In a subsequent commit, the variable will actually be used.
This commit is contained in:
Johan Wikman
2018-02-27 17:22:43 +02:00
parent 2434482dc6
commit 71c8a327b2
3 changed files with 94 additions and 5 deletions

View File

@ -1121,7 +1121,7 @@ bool session_add_variable(MXS_SESSION* session,
std::transform(key.begin(), key.end(), key.begin(), toupper);
if (session->variables->find(key) != session->variables->end())
if (session->variables->find(key) == session->variables->end())
{
SESSION_VARIABLE variable;
variable.handler = handler;