Skip to content

Commit a389a41

Browse files
authored
Merge pull request #5425 from dlenev/ps-8.0-threadpool_debug-fix
PS-9328: Fix for failures to shutdown server after execution of threadpool_debug test (8.0 version)
2 parents f3c6c56 + 5c62d58 commit a389a41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/threadpool_unix.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ bool Thread_pool_connection_handler::add_connection(
11971197

11981198
if (unlikely(!thd)) {
11991199
channel_info->send_error_and_close_channel(ER_OUT_OF_RESOURCES, 0, false);
1200+
Connection_handler_manager::dec_connection_count();
12001201
DBUG_RETURN(true);
12011202
}
12021203

@@ -1206,6 +1207,7 @@ bool Thread_pool_connection_handler::add_connection(
12061207
thd->get_protocol_classic()->end_net();
12071208
delete thd;
12081209
channel_info->send_error_and_close_channel(ER_OUT_OF_RESOURCES, 0, false);
1210+
Connection_handler_manager::dec_connection_count();
12091211
DBUG_RETURN(true);
12101212
}
12111213

0 commit comments

Comments
 (0)