Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly.

This commit is contained in:
VilhoRaatikka 2014-06-27 10:54:11 +03:00
parent edf9f0c59c
commit 20637ee224
3 changed files with 3 additions and 3 deletions

View File

@ -1837,7 +1837,6 @@ static DCB* dcb_get_next (
}
void dcb_call_foreach (
SERVER* srv,
DCB_REASON reason)
{
switch (reason) {

View File

@ -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 */

View File

@ -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) ||