MXS-2314 Prevent removal of servers from clustered services

If the servers of a service are defined by a monitor, then it must
not be possible to dynamically add or remove servers from the
service.
This commit is contained in:
Johan Wikman
2019-02-06 16:26:04 +02:00
parent b4eb87dfcc
commit 0e3ec06c5b
2 changed files with 39 additions and 11 deletions

View File

@ -108,6 +108,11 @@ public:
// TODO: Make this private.
Monitor* m_monitor { nullptr }; /**< A possibly associated monitor */
bool uses_cluster() const
{
return m_monitor != nullptr;
}
private:
FilterList m_filters; /**< Ordered list of filters */
std::string m_name; /**< Name of the service */