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:
@ -71,7 +71,7 @@ public:
|
||||
*
|
||||
* @return True if filters were all found and were valid
|
||||
*/
|
||||
bool set_filters(const std::string& filters);
|
||||
bool set_filters(const std::vector<std::string>& filters);
|
||||
|
||||
/**
|
||||
* Get the list of filters this service uses
|
||||
@ -311,9 +311,6 @@ void service_replace_parameter(Service *service, const char* key, const char* va
|
||||
// Internal search function
|
||||
Service* service_internal_find(const char *name);
|
||||
|
||||
// Assign filters to service
|
||||
bool service_set_filters(Service *service, const char* filters);
|
||||
|
||||
/**
|
||||
* @brief Check if a service uses a server
|
||||
* @param service Service to check
|
||||
|
||||
Reference in New Issue
Block a user