MXS-1775 Remove destroy()
Now the instance is deleted simply by deleting it.
This commit is contained in:
@ -86,11 +86,6 @@ NDBCMonitor* NDBCMonitor::create(MXS_MONITOR* monitor)
|
||||
return new NDBCMonitor(monitor);
|
||||
}
|
||||
|
||||
void NDBCMonitor::destroy()
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
bool NDBCMonitor::has_sufficient_permissions() const
|
||||
{
|
||||
return check_monitor_permissions(m_monitor, "SHOW STATUS LIKE 'Ndb_number_of_ready_data_nodes'");
|
||||
|
||||
@ -26,8 +26,8 @@ public:
|
||||
NDBCMonitor(const NDBCMonitor&) = delete;
|
||||
NDBCMonitor& operator = (const NDBCMonitor&) = delete;
|
||||
|
||||
~NDBCMonitor();
|
||||
static NDBCMonitor* create(MXS_MONITOR* monitor);
|
||||
void destroy();
|
||||
void diagnostics(DCB* dcb) const;
|
||||
json_t* diagnostics_json() const;
|
||||
|
||||
@ -35,7 +35,6 @@ private:
|
||||
unsigned long m_id; /**< Monitor ID */
|
||||
|
||||
NDBCMonitor(MXS_MONITOR* monitor);
|
||||
~NDBCMonitor();
|
||||
|
||||
void update_server_status(MXS_MONITORED_SERVER* monitored_server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user