diff options
author | unknown <dfischer/mysqldev@mysql.com/production.mysql.com> | 2006-12-19 11:48:08 +0100 |
---|---|---|
committer | unknown <dfischer/mysqldev@mysql.com/production.mysql.com> | 2006-12-19 11:48:08 +0100 |
commit | 9d8c9e9d96dc85cfac055b6014ac65d867152edf (patch) | |
tree | 240a6aad36c9a5aeeb5585308324ab3fc2449512 /innobase/sync/sync0rw.c | |
parent | c32d646d252dd234947dcb54c1fedb9703053819 (diff) | |
parent | 306f42701cdbf0801c710f3c0fe0e74c521455fc (diff) | |
download | mariadb-git-9d8c9e9d96dc85cfac055b6014ac65d867152edf.tar.gz |
Merge mysql.com:/data0/mysqldev/my/mysql-5.0-release
into mysql.com:/data0/mysqldev/my/build-200612151202-5.0.32/mysql-5.0-release
sql/ha_innodb.cc:
Auto merged
Diffstat (limited to 'innobase/sync/sync0rw.c')
-rw-r--r-- | innobase/sync/sync0rw.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/innobase/sync/sync0rw.c b/innobase/sync/sync0rw.c index 050de73db9e..629331d6049 100644 --- a/innobase/sync/sync0rw.c +++ b/innobase/sync/sync0rw.c @@ -89,9 +89,11 @@ void rw_lock_create_func( /*================*/ rw_lock_t* lock, /* in: pointer to memory */ +#ifdef UNIV_DEBUG + const char* cmutex_name, /* in: mutex name */ +#endif /* UNIV_DEBUG */ const char* cfile_name, /* in: file name where created */ - ulint cline, /* in: file line where created */ - const char* cmutex_name) /* in: mutex name */ + ulint cline) /* in: file line where created */ { /* If this is the very first time a synchronization object is created, then the following call initializes @@ -102,10 +104,10 @@ rw_lock_create_func( lock->mutex.cfile_name = cfile_name; lock->mutex.cline = cline; -#ifndef UNIV_HOTBACKUP - lock->mutex.cmutex_name = cmutex_name; - lock->mutex.mutex_type = 1; -#endif /* !UNIV_HOTBACKUP */ +#if defined UNIV_DEBUG && !defined UNIV_HOTBACKUP + lock->mutex.cmutex_name = cmutex_name; + lock->mutex.mutex_type = 1; +#endif /* UNIV_DEBUG && !UNIV_HOTBACKUP */ rw_lock_set_waiters(lock, 0); rw_lock_set_writer(lock, RW_LOCK_NOT_LOCKED); |