mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Fix issue 157
This commit is contained in:
parent
4e6cc8d364
commit
a21b841034
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user