diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2018-12-18 17:07:29 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-12-18 17:20:15 +0400 |
commit | b0fd06a6f27212cee770961171439a44626d8f14 (patch) | |
tree | ffd043e390f1e400f4d67ab52553a8a04e8805bc /unittest/mysys/waiting_threads-t.c | |
parent | 65525550ab8988a1a1a36d0403824ebaec160347 (diff) | |
download | mariadb-git-b0fd06a6f27212cee770961171439a44626d8f14.tar.gz |
MDEV-15670 - unit.my_atomic failed in buildbot with Signal 11 thrown
Workaround glibc bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20116
by making unittest threads joinable. It makes code better anyway.
Diffstat (limited to 'unittest/mysys/waiting_threads-t.c')
-rw-r--r-- | unittest/mysys/waiting_threads-t.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unittest/mysys/waiting_threads-t.c b/unittest/mysys/waiting_threads-t.c index 35e86aca319..eca6ba408c3 100644 --- a/unittest/mysys/waiting_threads-t.c +++ b/unittest/mysys/waiting_threads-t.c @@ -136,10 +136,8 @@ retry: pthread_mutex_unlock(&lock); pthread_mutex_unlock(& thds[id].lock); wt_thd_destroy(& thds[id].thd); - - if (!--running_threads) /* now, signal when everybody is done with deinit */ - pthread_cond_signal(&cond); pthread_mutex_unlock(&mutex); + DBUG_PRINT("wt", ("exiting")); my_thread_end(); return 0; |