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:
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user