1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

LP909537: Ensure thd_wait_begin/thd_wait_end callbacks are called.

This commit is contained in:
Vladislav Vaintroub
2011-12-29 19:37:26 +01:00
parent 8d90582a3b
commit 539a7ebe10
2 changed files with 10 additions and 18 deletions

View File

@@ -845,7 +845,7 @@ static void post_event(thread_group_t *thread_group, pool_event_t* ev)
*/
static bool too_many_threads(thread_group_t *thread_group)
{
return (thread_group->active_thread_count > 4 && !thread_group->stalled);
return (thread_group->active_thread_count >= 4 && !thread_group->stalled);
}