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:
parent
3f338c8672
commit
22cc155e55
@ -1915,6 +1915,13 @@ SERVICE* runtime_create_service_from_json(json_t* json)
|
||||
{
|
||||
rval = service_find(name);
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user