MXS-1775 Change MonitorInstance::configure() prototype
Now return boolean, to allow derived class to signal a failure to configure.
This commit is contained in:
@ -47,8 +47,9 @@ json_t* NDBCMonitor::diagnostics_json() const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void NDBCMonitor::configure(const MXS_CONFIG_PARAMETER* params)
|
||||
bool NDBCMonitor::configure(const MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NDBCMonitor::has_sufficient_permissions() const
|
||||
|
||||
@ -32,7 +32,7 @@ public:
|
||||
json_t* diagnostics_json() const;
|
||||
|
||||
protected:
|
||||
void configure(const MXS_CONFIG_PARAMETER* params);
|
||||
bool configure(const MXS_CONFIG_PARAMETER* params);
|
||||
bool has_sufficient_permissions() const;
|
||||
void update_server_status(MXS_MONITORED_SERVER* monitored_server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user