diff options
author | unknown <marko@hundin.mysql.fi> | 2004-04-28 17:03:26 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-04-28 17:03:26 +0300 |
commit | 74b70e0d73a6f1d93bb6234c6d2b88e005ee643e (patch) | |
tree | 4afd7c9965c4b0f10a47cc5ef48cfba67afc676c /innobase/sync | |
parent | b825d9b023071039dfbda8324427102533319cb4 (diff) | |
download | mariadb-git-74b70e0d73a6f1d93bb6234c6d2b88e005ee643e.tar.gz |
InnoDB: make UNIV_SYNC_DEBUG useable again
innobase/include/sync0sync.h:
mutex_get_debug_info(): add const qualifier
innobase/srv/srv0start.c:
Set srv_monitor_file_mutex at level SYNC_NO_ORDER_CHECK
innobase/sync/sync0arr.c:
sync_array_detect_deadlock(): Remove extraneous declaration of "lock"
innobase/sync/sync0sync.c:
mutex_get_debug_info(): add const qualifier
Diffstat (limited to 'innobase/sync')
-rw-r--r-- | innobase/sync/sync0arr.c | 1 | ||||
-rw-r--r-- | innobase/sync/sync0sync.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/innobase/sync/sync0arr.c b/innobase/sync/sync0arr.c index ddc1472cf4c..78d1a36fcf3 100644 --- a/innobase/sync/sync0arr.c +++ b/innobase/sync/sync0arr.c @@ -613,7 +613,6 @@ sync_array_detect_deadlock( rw_lock_t* lock; os_thread_id_t thread; ibool ret; - rw_lock_t* lock; rw_lock_debug_t*debug; ut_a(arr && start && cell); diff --git a/innobase/sync/sync0sync.c b/innobase/sync/sync0sync.c index eaeb56b4983..0897cc72a4f 100644 --- a/innobase/sync/sync0sync.c +++ b/innobase/sync/sync0sync.c @@ -515,7 +515,7 @@ void mutex_get_debug_info( /*=================*/ mutex_t* mutex, /* in: mutex */ - char** file_name, /* out: file where requested */ + const char** file_name, /* out: file where requested */ ulint* line, /* out: line where requested */ os_thread_id_t* thread_id) /* out: id of the thread which owns the mutex */ @@ -574,7 +574,7 @@ mutex_list_print_info(void) /*=======================*/ { mutex_t* mutex; - char* file_name; + const char* file_name; ulint line; os_thread_id_t thread_id; ulint count = 0; @@ -772,7 +772,7 @@ sync_thread_levels_g( if (mutex_get_lock_word(mutex) != 0) { #ifdef UNIV_SYNC_DEBUG - char* file_name; + const char* file_name; ulint line; os_thread_id_t thread_id; |