summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-08-19 17:49:39 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-08-19 17:49:39 +0200
commit4009e9b25333fb1819f2696760946679f7e20674 (patch)
treeb5074e4b06291b6b49d9f17a6d391da685366017
parentc9d57c006a3e9dc5dfd148d8a3b4c4663b5269ab (diff)
downloadmariadb-git-4009e9b25333fb1819f2696760946679f7e20674.tar.gz
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.
-rw-r--r--sql/threadpool_generic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/threadpool_generic.cc b/sql/threadpool_generic.cc
index b34104dbd08..ed3ba12ee25 100644
--- a/sql/threadpool_generic.cc
+++ b/sql/threadpool_generic.cc
@@ -1214,7 +1214,7 @@ TP_connection_generic *get_event(worker_thread_t *current_thread,
non-blocking event poll, i.e with timeout = 0.
If this returns events, pick one
*/
- if (!oversubscribed)
+ if (!oversubscribed && !threadpool_dedicated_listener)
{
native_event ev[MAX_EVENTS];
int cnt = io_poll_wait(thread_group->pollfd, ev, MAX_EVENTS, 0);