MXS-2314 Server added to monitor should be added to service

If the servers of a service are defined by a monitor (the config
has 'cluster=SomeMonitor'), then the addition of a server to a
a monitor should lead to that server being added to the service.
This commit is contained in:
Johan Wikman
2019-02-07 12:20:52 +02:00
parent 0e3ec06c5b
commit ab93216064
3 changed files with 25 additions and 0 deletions

View File

@ -417,5 +417,13 @@ json_t* service_relations_to_filter(const SFilterDef& filter, const char* host);
*/
void service_add_server(Monitor* pMonitor, SERVER* pServer);
/**
* @brief Remove server from all services associated with a monitor
*
* @param monitor A monitor.
* @param server A server.
*/
void service_remove_server(Monitor* pMonitor, SERVER* pServer);
std::unique_ptr<ResultSet> serviceGetList(void);
std::unique_ptr<ResultSet> serviceGetListenerList(void);