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:
Markus Mäkelä
2018-08-06 02:30:42 +03:00
parent 3a185902b7
commit 56ede5bbf4
3 changed files with 6 additions and 25 deletions

View File

@ -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++;
}