Split config.h into external and internal parts
The external config.h header defined functions and structures that are intended to be used by modules. The internal header contains functions that are used only by the MaxScale core.
This commit is contained in:
@ -743,14 +743,17 @@ static ROUTER* createInstance(SERVICE *service, char **options)
|
||||
|
||||
if ((param = config_get_param(conf, "ignore_databases")))
|
||||
{
|
||||
char *sptr, *tok, *val = config_clean_string_list(param->value);
|
||||
char val[strlen(param->value) + 1];
|
||||
strcpy(val, param->value);
|
||||
|
||||
tok = strtok_r(val, ",", &sptr);
|
||||
const char *sep = ", \t";
|
||||
char *sptr;
|
||||
char *tok = strtok_r(val, sep, &sptr);
|
||||
|
||||
while (tok)
|
||||
{
|
||||
hashtable_add(router->ignored_dbs, tok, "");
|
||||
tok = strtok_r(NULL, ",", &sptr);
|
||||
tok = strtok_r(NULL, sep, &sptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user