summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2010-09-20 11:21:27 +0200
committerBjorn Munch <bjorn.munch@oracle.com>2010-09-20 11:21:27 +0200
commitc679e8dc800a11cf3271c314097e5d9dd71b9068 (patch)
tree8a227ee82035d503f178052e09de66fef6adcdf5 /client
parent38604de3a0fec8a3ff73b2e3c945617a1388759e (diff)
downloadmariadb-git-c679e8dc800a11cf3271c314097e5d9dd71b9068.tar.gz
Bug #55426 mysqltest crashes when trying to unlock not acquired mutex
Follow-up: don't call pthread_join() on Windows This change only valid for 5.1
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index a84ad2ad9e8..08375e4a576 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -763,7 +763,10 @@ static void wait_query_thread_end(struct st_connection *con)
}
if (con->has_thread)
{
+#ifndef __WIN__
+ /* May hang on Windows, but the problem it solves is not seen there */
pthread_join(con->tid, NULL);
+#endif
con->has_thread= FALSE;
}
}