Fix issue 157

This commit is contained in:
lazio579 2018-11-14 16:28:29 +08:00
parent 4e6cc8d364
commit a21b841034
2 changed files with 4 additions and 4 deletions

View File

@ -62,9 +62,6 @@ void
chassis_event_add_with_timeout(chassis *chas, struct event *ev, struct timeval *tv)
{
event_base_set(chas->event_base, ev);
#if NETWORK_DEBUG_TRACE_EVENT
CHECK_PENDING_EVENT(ev);
#endif
event_add(ev, tv);
g_debug("%s:event add ev:%p", G_STRLOC, ev);
}

View File

@ -4080,7 +4080,10 @@ network_mysqld_con_handle(int event_fd, short events, void *user_data)
break;
case ST_READ_QUERY:
g_debug(G_STRLOC " %p con_handle -> ST_READ_QUERY", con);
CHECK_PENDING_EVENT(&(con->client->event));
if (events == EV_READ) {
CHECK_PENDING_EVENT(&(con->client->event));
}
/* TODO If config is reloaded, close all current cons */
g_assert(events == 0 || event_fd == con->client->fd);