summaryrefslogtreecommitdiff
path: root/innobase/sync/sync0rw.c
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-04-07 14:19:26 +0300
committermarko@hundin.mysql.fi <>2004-04-07 14:19:26 +0300
commit253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f (patch)
tree2f1cb9f7307ff2cede7e13d739760692e11dcaaf /innobase/sync/sync0rw.c
parent44a6fcba2f357b3f74bde8673046b310ecfd6645 (diff)
downloadmariadb-git-253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f.tar.gz
InnoDB: Remove debug functions unless #ifdef UNIV_DEBUG
Diffstat (limited to 'innobase/sync/sync0rw.c')
-rw-r--r--innobase/sync/sync0rw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/innobase/sync/sync0rw.c b/innobase/sync/sync0rw.c
index e3caa24cb1e..9dd5148e27a 100644
--- a/innobase/sync/sync0rw.c
+++ b/innobase/sync/sync0rw.c
@@ -157,6 +157,7 @@ rw_lock_free(
mutex_exit(&rw_lock_list_mutex);
}
+#ifdef UNIV_DEBUG
/**********************************************************************
Checks that the rw-lock has been initialized and that there are no
simultaneous shared and exclusive locks. */
@@ -184,6 +185,7 @@ rw_lock_validate(
return(TRUE);
}
+#endif /* UNIV_DEBUG */
/**********************************************************************
Lock an rw-lock in shared mode for the current thread. If the rw-lock is