MXS-2711: Fix updating of retain_last_statements
The value is now correctly expected to be a non-negative integer.
This commit is contained in:
@ -894,10 +894,9 @@ bool runtime_alter_maxscale(const char* name, const char* value)
|
|||||||
}
|
}
|
||||||
else if (key == CN_RETAIN_LAST_STATEMENTS)
|
else if (key == CN_RETAIN_LAST_STATEMENTS)
|
||||||
{
|
{
|
||||||
int intval = get_positive_int(value);
|
if (is_valid_integer(value))
|
||||||
if (intval)
|
|
||||||
{
|
{
|
||||||
session_set_retain_last_statements(intval);
|
session_set_retain_last_statements(atoi(value));
|
||||||
rval = true;
|
rval = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user