Commit 130fb4dd authored by unknown's avatar unknown

Bug#22320 workaround (second attempt)

parent d12c8374
...@@ -470,8 +470,18 @@ int main(int argc __attribute__((unused)), ...@@ -470,8 +470,18 @@ int main(int argc __attribute__((unused)),
pthread_mutex_lock(&LOCK_thread_count); pthread_mutex_lock(&LOCK_thread_count);
while (thread_count) while (thread_count)
{ {
/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep(1);
if ((error= pthread_cond_wait(&COND_thread_count,&LOCK_thread_count))) if ((error= pthread_cond_wait(&COND_thread_count,&LOCK_thread_count)))
diag("COND_thread_count: %d from pthread_cond_wait\n",error); diag("COND_thread_count: %d from pthread_cond_wait\n",error);
/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep(1);
} }
pthread_mutex_unlock(&LOCK_thread_count); pthread_mutex_unlock(&LOCK_thread_count);
DBUG_PRINT("info", ("thread ended")); DBUG_PRINT("info", ("thread ended"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment