mirror of
https://github.com/MariaDB/server.git
synced 2025-11-15 09:02:33 +03:00
in the server. this fixes the problem with the limited number of
threads because of them being non-detached. pthread_detach_this_tread()
expands to empty on most platforms including SuSE but pthread_detach(pthread_self())
is not portable on Windows so the first macro should be used and the thread
to be detached we have to create it as such.
fix for bug#16984 (Events: running out of threads)
WL#1034 (Internal CRON)
sql/event_executor.cc:
- use the connection_attib used to spawn threads
in the server. this fixes the problem with the limited number of
threads because of them being non-detached. pthread_detach_this_tread()
expands to empty on most platforms including SuSE but pthread_detach(pthread_self())
is not portable on Windows so the first macro should be used and the thread
to be detached we have to create it as such.
19 KiB
19 KiB