Skip to content

Commit

Permalink
Merge pull request #5425 from dlenev/ps-8.0-threadpool_debug-fix
Browse files Browse the repository at this point in the history
PS-9328: Fix for failures to shutdown server after execution of threadpool_debug test (8.0 version)
  • Loading branch information
dlenev authored Sep 12, 2024
2 parents f3c6c56 + 5c62d58 commit a389a41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/threadpool_unix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,7 @@ bool Thread_pool_connection_handler::add_connection(

if (unlikely(!thd)) {
channel_info->send_error_and_close_channel(ER_OUT_OF_RESOURCES, 0, false);
Connection_handler_manager::dec_connection_count();
DBUG_RETURN(true);
}

Expand All @@ -1206,6 +1207,7 @@ bool Thread_pool_connection_handler::add_connection(
thd->get_protocol_classic()->end_net();
delete thd;
channel_info->send_error_and_close_channel(ER_OUT_OF_RESOURCES, 0, false);
Connection_handler_manager::dec_connection_count();
DBUG_RETURN(true);
}

Expand Down

0 comments on commit a389a41

Please sign in to comment.