Add listening sockets to shared epoll instance

All sorts of additional cleaning up can now be performed.
This commit is contained in:
Johan Wikman
2017-04-21 21:33:59 +03:00
parent 56b411aea9
commit c5fd2bdb81
2 changed files with 4 additions and 32 deletions

View File

@ -3473,10 +3473,11 @@ int poll_add_dcb(DCB *dcb)
else if (dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER)
{
worker_id = dcb->session->client_dcb->poll.thread.id;
ss_dassert(worker_id == Worker::get_current_id());
}
else
{
worker_id = MXS_WORKER_ANY;
worker_id = Worker::get_current_id();
}
if (poll_add_fd_to_worker(worker_id, dcb->fd, events, (MXS_POLL_DATA*)dcb))