diff options
author | monty@donna.mysql.fi <> | 2001-03-24 20:15:14 +0200 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-03-24 20:15:14 +0200 |
commit | aa115733800a27fb5ba1f9dd9a3f05b1ec8ec445 (patch) | |
tree | e705394f8291c4c2268717e3fb70734414d0f1d9 /mysys/thr_mutex.c | |
parent | 2531f38803ff6804d6b195cb4f52cc55365435ed (diff) | |
download | mariadb-git-aa115733800a27fb5ba1f9dd9a3f05b1ec8ec445.tar.gz |
Added defines for fast mutex in glibc 2.2 (should be safe)
Fixed crash in SELECT DISTINCT SUM(...)
Fix return value of mysortncmp() for innobase
Fix join_crash bug
Diffstat (limited to 'mysys/thr_mutex.c')
-rw-r--r-- | mysys/thr_mutex.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c index 7cc3b30aaf9..fa7ae4f1e82 100644 --- a/mysys/thr_mutex.c +++ b/mysys/thr_mutex.c @@ -43,19 +43,8 @@ int safe_mutex_init(safe_mutex_t *mp, const pthread_mutexattr_t *attr __attribute__((unused))) { bzero((char*) mp,sizeof(*mp)); -#ifdef HAVE_LINUXTHREADS /* Some extra safety */ - { - pthread_mutexattr_t tmp; - pthread_mutexattr_init(&tmp); - pthread_mutexattr_setkind_np(&tmp,PTHREAD_MUTEX_ERRORCHECK_NP); - pthread_mutex_init(&mp->global,&tmp); - pthread_mutex_init(&mp->mutex, &tmp); - pthread_mutexattr_destroy(&tmp); - } -#else - pthread_mutex_init(&mp->global,NULL); + pthread_mutex_init(&mp->global,MY_MUTEX_INIT_ERRCHK); pthread_mutex_init(&mp->mutex,attr); -#endif return 0; } |