diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-29 19:37:26 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-29 19:37:26 +0100 |
commit | 539a7ebe1038560c8de1d521120058907f2604bf (patch) | |
tree | cd9012c1cab24b7746cd9c2f8b091a9f2f145f76 /sql/threadpool_unix.cc | |
parent | 8d90582a3b36ae8be764b43043fedd03c3db4686 (diff) | |
download | mariadb-git-539a7ebe1038560c8de1d521120058907f2604bf.tar.gz |
LP909537: Ensure thd_wait_begin/thd_wait_end callbacks are called.
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r-- | sql/threadpool_unix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |