Skip to content

Commit 9ae25d5

Browse files
committed
PS-9451 [8.0] fix unprivileged user login when threadpool is full
https://perconadev.atlassian.net/browse/PS-9452 This patch puts all new connections to the thread_group->high_prio_queue instead of normal priority queue to allow unprivileged user login when threadpool is full.
1 parent ceae460 commit 9ae25d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/threadpool_unix.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,8 @@ static void queue_put(thread_group_t *thread_group, connection_t *connection) {
993993

994994
mysql_mutex_lock(&thread_group->mutex);
995995
connection->tickets = connection->thd->variables.threadpool_high_prio_tickets;
996-
thread_group->queue.push_back(connection);
997-
996+
//put new connection into high prio queue instead of normal to be able to login
997+
thread_group->high_prio_queue.push_back(connection);
998998
if (thread_group->active_thread_count == 0)
999999
wake_or_create_thread(thread_group, connection->thd->is_admin_connection());
10001000

0 commit comments

Comments
 (0)