From 539a7ebe1038560c8de1d521120058907f2604bf Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 29 Dec 2011 19:37:26 +0100 Subject: LP909537: Ensure thd_wait_begin/thd_wait_end callbacks are called. --- sql/threadpool_unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/threadpool_unix.cc') diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc index b9cf4c61b7e..32847e91a32 100644 --- a/sql/threadpool_unix.cc +++ b/sql/threadpool_unix.cc @@ -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); } -- cgit v1.2.1