diff options
author | heikki@hundin.mysql.fi <> | 2003-05-14 20:17:01 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-05-14 20:17:01 +0300 |
commit | cef5df827a80e8fc7d38608e20f96780fb699698 (patch) | |
tree | e2529a156958fcc994bb52b1822d6f075ad0123c | |
parent | 75e49549a57d35a2b9c5a39fc81dc92442f64613 (diff) | |
download | mariadb-git-cef5df827a80e8fc7d38608e20f96780fb699698.tar.gz |
os0sync.c:
Check that pthread_mutex_init and pthread_mutex_destroy return 0
-rw-r--r-- | innobase/os/os0sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c index 83b2961c3ca..c460416fa64 100644 --- a/innobase/os/os0sync.c +++ b/innobase/os/os0sync.c @@ -446,9 +446,9 @@ os_fast_mutex_init( InitializeCriticalSection((LPCRITICAL_SECTION) fast_mutex); #else #if defined(UNIV_HOTBACKUP) && defined(UNIV_HPUX10) - pthread_mutex_init(fast_mutex, pthread_mutexattr_default); + ut_a(0 == pthread_mutex_init(fast_mutex, pthread_mutexattr_default)); #else - pthread_mutex_init(fast_mutex, MY_MUTEX_INIT_FAST); + ut_a(0 == pthread_mutex_init(fast_mutex, MY_MUTEX_INIT_FAST)); #endif #endif } @@ -496,6 +496,6 @@ os_fast_mutex_free( DeleteCriticalSection((LPCRITICAL_SECTION) fast_mutex); #else - pthread_mutex_destroy(fast_mutex); + ut_a(0 == pthread_mutex_destroy(fast_mutex)); #endif } |