Commit 4009e9b2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-19313 post-fix

If --thread-pool-dedicated-listener is set, worker should not pick up
events. Dedicated listener constantly drains all events, thus polling
also from another thread makes no sense.
parent c9d57c00
...@@ -1214,7 +1214,7 @@ TP_connection_generic *get_event(worker_thread_t *current_thread, ...@@ -1214,7 +1214,7 @@ TP_connection_generic *get_event(worker_thread_t *current_thread,
non-blocking event poll, i.e with timeout = 0. non-blocking event poll, i.e with timeout = 0.
If this returns events, pick one If this returns events, pick one
*/ */
if (!oversubscribed) if (!oversubscribed && !threadpool_dedicated_listener)
{ {
native_event ev[MAX_EVENTS]; native_event ev[MAX_EVENTS];
int cnt = io_poll_wait(thread_group->pollfd, ev, MAX_EVENTS, 0); int cnt = io_poll_wait(thread_group->pollfd, ev, MAX_EVENTS, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment