MXS-1475 Add @maxscale.cache.[populate|use]
The earlier @maxscale.cache.enabled has now been replaced with @maxscale.cache.populate and @maxscale.cache.use that provide for more flexibility. With the former it is possible to control in what circumstances the cache is populated and with the latter one when it is used. Together they can be used for having a completely client driven caching.
This commit is contained in:
@ -1119,7 +1119,7 @@ bool session_add_variable(MXS_SESSION* session,
|
||||
{
|
||||
string key(name);
|
||||
|
||||
std::transform(key.begin(), key.end(), key.begin(), toupper);
|
||||
std::transform(key.begin(), key.end(), key.begin(), tolower);
|
||||
|
||||
if (session->variables->find(key) == session->variables->end())
|
||||
{
|
||||
@ -1153,7 +1153,7 @@ char* session_set_variable_value(MXS_SESSION* session,
|
||||
|
||||
string key(name_begin, name_end - name_begin);
|
||||
|
||||
transform(key.begin(), key.end(), key.begin(), toupper);
|
||||
transform(key.begin(), key.end(), key.begin(), tolower);
|
||||
|
||||
SessionVarsByName::iterator i = session->variables->find(key);
|
||||
|
||||
|
Reference in New Issue
Block a user