MXS-1929: Use correct object type when loading defaults
The service creation attempted to load defaults for a filter module when the module in question was a router.
This commit is contained in:
@ -1087,7 +1087,7 @@ static bool runtime_create_service(const char *name, const char *router, MXS_CON
|
|||||||
{
|
{
|
||||||
SERVICE* service = NULL;
|
SERVICE* service = NULL;
|
||||||
CONFIG_CONTEXT ctx{(char*)""};
|
CONFIG_CONTEXT ctx{(char*)""};
|
||||||
ctx.parameters = load_defaults(router, MODULE_FILTER, CN_FILTER);
|
ctx.parameters = load_defaults(router, MODULE_ROUTER, CN_SERVICE);
|
||||||
|
|
||||||
if (ctx.parameters)
|
if (ctx.parameters)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user