MXS-1929: Process relationships when creating services
The relationships of a service are handled by the service alteration code. Currently, only server relationships are handled by the code in question and filter relationships are ignored.
This commit is contained in:
@ -1915,6 +1915,13 @@ SERVICE* runtime_create_service_from_json(json_t* json)
|
|||||||
{
|
{
|
||||||
rval = service_find(name);
|
rval = service_find(name);
|
||||||
ss_dassert(rval);
|
ss_dassert(rval);
|
||||||
|
|
||||||
|
// Performing an alter right after creation takes care of server relationships
|
||||||
|
if (!runtime_alter_service_from_json(rval, json))
|
||||||
|
{
|
||||||
|
runtime_destroy_service(rval);
|
||||||
|
rval = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
config_parameter_free(params);
|
config_parameter_free(params);
|
||||||
|
Reference in New Issue
Block a user