Allow infinite refreshes of users
The hard limit of 10 seconds is too strict when taking into account the fact that infinite refreshes was possible before the bug was fixed. This also makes testing a lot easier where rapid reloads are necessary.
This commit is contained in:
@ -2337,7 +2337,7 @@ static int handle_global_item(const char* name, const char* value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
decltype(gateway.qc_cache_properties.max_size)max_size = int_value;
|
||||
decltype(gateway.qc_cache_properties.max_size) max_size = int_value;
|
||||
|
||||
if (max_size >= 0)
|
||||
{
|
||||
@ -2515,15 +2515,6 @@ static int handle_global_item(const char* name, const char* value)
|
||||
// but I just don't beleave the uptime will be that long.
|
||||
users_refresh_time = INT32_MAX;
|
||||
}
|
||||
else if (users_refresh_time < USERS_REFRESH_TIME_MIN)
|
||||
{
|
||||
MXS_WARNING("%s is less than the allowed minimum value of %d for the "
|
||||
"configuration option '%s', using the minimum value.",
|
||||
value,
|
||||
USERS_REFRESH_TIME_MIN,
|
||||
CN_USERS_REFRESH_TIME);
|
||||
users_refresh_time = USERS_REFRESH_TIME_MIN;
|
||||
}
|
||||
|
||||
if (users_refresh_time > INT32_MAX)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user