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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user