Don't record pengding event warings when using libev

This commit is contained in:
lazio579 2018-11-20 10:19:12 +08:00
parent 1944ea1521
commit 36abea87de

View File

@ -4095,7 +4095,7 @@ network_mysqld_con_handle(int event_fd, short events, void *user_data)
}
} else if (events & EV_WRITE) {
g_critical(G_STRLOC "write events:%d, unexpected events", events);
} else if (events != EV_TIMEOUT) {
} else if (events && events != EV_TIMEOUT) {
g_critical(G_STRLOC "not rw events:%d, unexpected events", events);
}
@ -5135,7 +5135,6 @@ check_old_server_connection(gpointer data, gpointer user_data)
network_connection_pool_entry *entry = data;
chassis *chas = user_data;
chas->complement_conn_flag = 1;
network_connection_pool_remove(entry);
g_message("%s: call check_old_server_connection", G_STRLOC);
}