summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2013-11-06 22:53:39 +0400
committerSergey Vojtovich <svoj@mariadb.org>2013-11-06 22:53:39 +0400
commita588de1fe8d6b376cabb67581374078c7a7d38d7 (patch)
tree3b07552b3270cbeb6be71466dd1c8b06a5a0fd6b /mysql-test
parent6cc9f4ac5c1530087ae1b808ab0fdcc58b308b54 (diff)
downloadmariadb-git-a588de1fe8d6b376cabb67581374078c7a7d38d7.tar.gz
MDEV-5205 - MariaDB does not start if more than 128 cpu's are available
An addition to fix for MDEV-5205, fixes server crash on shutdown. Thread groups are destroyed asynchronously, that is kill server thread sends shutdown request to all thread groups without waiting for compeltion. It means all_groups array must not be freed until all thread groups are down. This patch suggests that all_groups is freed when last thread group is destroyed. Note 1: threadpool code doesn't surround atomic ops with atomic locks, thus no locks for shutdown_group_count. Note 2: this patch preserves old behaviour, but we may need to wait until all thread groups are down before returning from tp_end().
Diffstat (limited to 'mysql-test')
0 files changed, 0 insertions, 0 deletions