Fix duplication of the router parameter
The service parameter list had two router entries in it due to the assumption that the parameter list never contained the router itself in it.
This commit is contained in:
parent
4f8d6d1853
commit
48791c3877
@ -106,12 +106,12 @@ Service* service_alloc(const char* name, const char* router, MXS_CONFIG_PARAMETE
|
||||
dcb_enable_session_timeouts();
|
||||
}
|
||||
|
||||
// Store router, used when service is serialized
|
||||
service_add_parameter(service, CN_ROUTER, router);
|
||||
|
||||
// Store parameters in the service
|
||||
service_add_parameters(service, params);
|
||||
|
||||
// Store router, used when service is serialized
|
||||
service_replace_parameter(service, CN_ROUTER, router);
|
||||
|
||||
service->router_instance = router_api->createInstance(service, params);
|
||||
|
||||
if (service->router_instance == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user