summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authormsvensson@msdesk.(none) <>2005-10-06 14:40:18 +0200
committermsvensson@msdesk.(none) <>2005-10-06 14:40:18 +0200
commit5da6a6c8a140a130f4c92d1af7517daed84c92f8 (patch)
tree734fdb74393f521e44d3e254c283586558f54ca4 /innobase
parent3af12c477662114f4e118bba6806af65f64b9793 (diff)
parent905c8b8c88838f29ce7a3dc8cd4275b768426c9c (diff)
downloadmariadb-git-5da6a6c8a140a130f4c92d1af7517daed84c92f8.tar.gz
Merge msdesk.(none):/home/msvensson/mysql-4.1
into msdesk.(none):/home/msvensson/mysql-5.0
Diffstat (limited to 'innobase')
-rw-r--r--innobase/os/os0sync.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index 356d7c8c163..487e8f40a39 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -631,7 +631,21 @@ os_fast_mutex_free(
DeleteCriticalSection((LPCRITICAL_SECTION) fast_mutex);
#else
- ut_a(0 == pthread_mutex_destroy(fast_mutex));
+ int ret;
+
+ ret = pthread_mutex_destroy(fast_mutex);
+
+ if (ret != 0) {
+ ut_print_timestamp(stderr);
+ fprintf(stderr,
+" InnoDB: error: return value %lu when calling\n"
+"InnoDB: pthread_mutex_destroy().\n", (ulint)ret);
+ fprintf(stderr,
+"InnoDB: Byte contents of the pthread mutex at %p:\n", fast_mutex);
+ ut_print_buf(stderr, (const byte*)fast_mutex,
+ sizeof(os_fast_mutex_t));
+ fprintf(stderr, "\n");
+ }
#endif
if (os_sync_mutex_inited) {
/* When freeing the last mutexes, we have