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:
Markus Mäkelä 2018-07-23 14:56:41 +03:00
parent 9e9f0b5959
commit 0c63471715
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1087,7 +1087,7 @@ static bool runtime_create_service(const char *name, const char *router, MXS_CON
{
SERVICE* service = NULL;
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)
{