Remove unnecessary function from header
The function was only used in one place. Also added a debug assertion for the monitor event detection mechanism.
This commit is contained in:
parent
eff34b91fb
commit
dbeb208a5c
@ -66,8 +66,6 @@ extern bool monitorSetNetworkTimeout(MXS_MONITOR *, int, int);
|
||||
mxs_monitor_event_t mon_get_event_type(MXS_MONITOR_SERVERS* node);
|
||||
const char* mon_get_event_name(MXS_MONITOR_SERVERS* node);
|
||||
|
||||
void mon_log_state_change(MXS_MONITOR_SERVERS *ptr);
|
||||
|
||||
/**
|
||||
* @brief Serialize the servers of a monitor to a file
|
||||
*
|
||||
|
@ -917,6 +917,7 @@ mon_get_event_name(MXS_MONITOR_SERVERS* node)
|
||||
}
|
||||
}
|
||||
|
||||
ss_dassert(false);
|
||||
return "undefined_event";
|
||||
}
|
||||
|
||||
@ -1176,7 +1177,7 @@ mon_log_connect_error(MXS_MONITOR_SERVERS* database, mxs_connect_result_t rval)
|
||||
mysql_error(database->con));
|
||||
}
|
||||
|
||||
void mon_log_state_change(MXS_MONITOR_SERVERS *ptr)
|
||||
static void mon_log_state_change(MXS_MONITOR_SERVERS *ptr)
|
||||
{
|
||||
SERVER srv;
|
||||
srv.status = ptr->mon_prev_status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user