MXS-2314 Monitor decides whether servers are added to services
When the servers of a service are defined by a monitor, then at startup all servers of the monitor should be added to relevant services. Likewise, when a server is added to or removed from a monitor at runtime, those changes should affect services as well. However, whether that should happen or not depends upon the monitor. In the case of the Clustrix monitor this should not happen as it adds and removes servers depending on the runtime state of the Clustrix cluster.
This commit is contained in:
@ -1406,7 +1406,7 @@ std::unordered_set<CONFIG_CONTEXT*> get_dependencies(const std::vector<CONFIG_CO
|
||||
|
||||
if (type == CN_SERVICE && config_get_value(obj->parameters, CN_CLUSTER))
|
||||
{
|
||||
rval.insert(name_to_object(objects, obj, config_get_string(obj->parameters, CN_CLUSTER)));
|
||||
rval.insert(name_to_object(objects, obj, obj->parameters->get_string(CN_CLUSTER)));
|
||||
}
|
||||
|
||||
if ((type == CN_MONITOR || type == CN_SERVICE) && config_get_value(obj->parameters, CN_SERVERS))
|
||||
|
Reference in New Issue
Block a user