summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-06-17 18:54:11 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-06-20 15:17:10 +0400
commit7f38a070baa503a37af186ff24f39606816f55ec (patch)
treeede921ca4bb2506a0fc42c595d035ff99f0905cd /scripts
parent128930c19b4ebc6a50f254bcee6af84db79ebe91 (diff)
downloadmariadb-git-7f38a070baa503a37af186ff24f39606816f55ec.tar.gz
MDEV-10043 - main.events_restart fails sporadically in buildbot (crashes upon
shutdown) There was race condition between shutdown thread and event worker threads. Shutdown thread waits for thread_count to become 0 in close_connections(). It may happen so that event worker thread was started but didn't increment thread_count by this time. In this case shutdown thread may miss wait for this working thread and continue deinitialization. Worker thread in turn may continue execution and crash on deinitialized data. Fixed by incrementing thread_count before thread is actually created like it is done for connection threads. Also let event scheduler not to inc/dec running threads counter for symmetry with other "service" threads.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions