Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly.
This commit is contained in:
parent
edf9f0c59c
commit
20637ee224
@ -1837,7 +1837,6 @@ static DCB* dcb_get_next (
|
||||
}
|
||||
|
||||
void dcb_call_foreach (
|
||||
SERVER* srv,
|
||||
DCB_REASON reason)
|
||||
{
|
||||
switch (reason) {
|
||||
|
@ -296,6 +296,8 @@ bool dcb_set_state(
|
||||
DCB* dcb,
|
||||
dcb_state_t new_state,
|
||||
dcb_state_t* old_state);
|
||||
void dcb_call_foreach (DCB_REASON reason);
|
||||
|
||||
|
||||
|
||||
/* DCB flags values */
|
||||
|
@ -324,7 +324,6 @@ unsigned long int server_version = 0;
|
||||
char *server_string;
|
||||
unsigned long id = handle->id;
|
||||
int replication_heartbeat = handle->replicationHeartbeat;
|
||||
static int conn_err_count;
|
||||
|
||||
if (database->server->monuser != NULL)
|
||||
{
|
||||
@ -695,7 +694,7 @@ MONITOR_SERVERS *ptr;
|
||||
|
||||
if (mon_status_changed(ptr))
|
||||
{
|
||||
dcb_call_foreach(ptr->server, DCB_REASON_NOT_RESPONDING);
|
||||
dcb_call_foreach(DCB_REASON_NOT_RESPONDING);
|
||||
}
|
||||
|
||||
if (mon_status_changed(ptr) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user