diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2013-11-05 09:18:59 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2013-11-05 09:18:59 +0400 |
commit | fd9f1638ea7401e9bc72653882fded4c0dee15d8 (patch) | |
tree | 930887a8e4febd36cc7a2539a0c225376d0924d8 /sql/sql_plist.h | |
parent | 52dea41052bc1be1efbe59c320046d7e62cfd0a6 (diff) | |
download | mariadb-git-fd9f1638ea7401e9bc72653882fded4c0dee15d8.tar.gz |
MDEV-5205 - MariaDB does not start if more than 128 cpu's are available
- thread_pool_size command line option upper limit increased to 100 000
(same as for max_connections)
- thread_pool_size system variable upper limit is maximum of 128 or
the value given at command line
- thread groups are now allocated dynamically
Different limit for command line option and system variable was done to
avoid additional mutex for all_groups and threadpool_max_size.
Diffstat (limited to 'sql/sql_plist.h')
-rw-r--r-- | sql/sql_plist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_plist.h b/sql/sql_plist.h index 2b6f1067321..e703b4c0f62 100644 --- a/sql/sql_plist.h +++ b/sql/sql_plist.h @@ -75,6 +75,11 @@ class I_P_List : public C, public I */ public: I_P_List() : I(&m_first), m_first(NULL) {}; + /* + empty() is used in many places in the code instead of a constructor, to + initialize a bzero-ed I_P_List instance. + */ + inline void empty() { m_first= NULL; C::reset(); I::set_last(&m_first); } inline bool is_empty() const { return (m_first == NULL); } inline void push_front(T* a) |