MXS-1929: Remove string parsing from Service
As the filters are only passed as a pipe separated list when the configuration is being processed, there's no need to have the interface conform to that. Passing a list of filter names makes it more flexible and will make it's use in the runtime configuration easier.
This commit is contained in:
@ -3404,7 +3404,9 @@ int create_new_service(CONFIG_CONTEXT *obj)
|
||||
|
||||
if (char* filters = config_get_value(obj->parameters, CN_FILTERS))
|
||||
{
|
||||
if (!service_set_filters(service, filters))
|
||||
auto flist = mxs::strtok(filters, "|");
|
||||
|
||||
if (!service->set_filters(flist))
|
||||
{
|
||||
error_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user