Skip to content

Commit

Permalink
Fix message severity for "thread pool blocked" messages.
Browse files Browse the repository at this point in the history
Those messages don't indicate errors, they should be normal warnings.
  • Loading branch information
vaintroub committed Oct 28, 2021
1 parent 563daec commit ff3274d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/threadpool_generic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1793,9 +1793,9 @@ static void print_pool_blocked_message(bool max_threads_reached)
if (now > pool_block_start + BLOCK_MSG_DELAY && !msg_written)
{
if (max_threads_reached)
sql_print_error(MAX_THREADS_REACHED_MSG);
sql_print_warning(MAX_THREADS_REACHED_MSG);
else
sql_print_error(CREATE_THREAD_ERROR_MSG, my_errno);
sql_print_warning(CREATE_THREAD_ERROR_MSG, my_errno);

sql_print_information("Threadpool has been blocked for %u seconds\n",
(uint)((now- pool_block_start)/1000000));
Expand Down

0 comments on commit ff3274d

Please sign in to comment.