diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2015-12-04 18:16:04 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2015-12-04 18:16:04 +0100 |
commit | 50160216eab066de7a71dd8e355f0c5cb29c8789 (patch) | |
tree | 1fa9274cc7cbb63b6f275bbcc3c849828437e4f5 /sql/threadpool.h | |
parent | ba8e630d97af2b2ed3e527070f1cab05571911fd (diff) | |
download | mariadb-git-50160216eab066de7a71dd8e355f0c5cb29c8789.tar.gz |
MDEV-9156 : Fix tp_add_connection()'s error handling
Avoid possible my_thread_end() in the main polling thread.
Diffstat (limited to 'sql/threadpool.h')
-rw-r--r-- | sql/threadpool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h index c080e5ba343..bcbdca47808 100644 --- a/sql/threadpool.h +++ b/sql/threadpool.h @@ -27,6 +27,7 @@ extern uint threadpool_oversubscribe; /* Maximum active threads in group */ /* Common thread pool routines, suitable for different implementations */ +extern void threadpool_cleanup_connection(THD *thd); extern void threadpool_remove_connection(THD *thd); extern int threadpool_process_request(THD *thd); extern int threadpool_add_connection(THD *thd); |