Remove two checks that always return false

At the point this function is called, the servers and services are
not yet created.
This commit is contained in:
Esa Korhonen 2017-03-14 10:40:36 +02:00
parent 8c7618035b
commit dd82c46596

View File

@ -3400,16 +3400,14 @@ bool config_param_is_valid(const MXS_MODULE_PARAM *params, const char *key,
break;
case MXS_MODULE_PARAM_SERVICE:
if ((context && config_contains_type(context, value, "service")) ||
service_find(value))
if (context && config_contains_type(context, value, "service"))
{
valid = true;
}
break;
case MXS_MODULE_PARAM_SERVER:
if ((context && config_contains_type(context, value, "server")) ||
server_find_by_unique_name(value))
if (context && config_contains_type(context, value, "server"))
{
valid = true;
}