summaryrefslogtreecommitdiff
path: root/storage/xtradb/fil/fil0fil.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-03-06 10:02:01 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2017-03-06 10:02:01 +0200
commit68d632bc5a1437282dde5460b7a0d3d887fd5483 (patch)
treec7fc9575ab05b4906a19c92b6c26963a8e181878 /storage/xtradb/fil/fil0fil.cc
parentadc91387e3add6d9c850b7c2a44760deaceb3638 (diff)
downloadmariadb-git-68d632bc5a1437282dde5460b7a0d3d887fd5483.tar.gz
Replace some functions with macros.
This is a non-functional change. On a related note, the calls fil_system_enter() and fil_system_exit() are often used in an unsafe manner. The fix of MDEV-11738 should introduce fil_space_acquire() and remove potential race conditions.
Diffstat (limited to 'storage/xtradb/fil/fil0fil.cc')
-rw-r--r--storage/xtradb/fil/fil0fil.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/storage/xtradb/fil/fil0fil.cc b/storage/xtradb/fil/fil0fil.cc
index 0357ab43e70..ac1a7d3bbcd 100644
--- a/storage/xtradb/fil/fil0fil.cc
+++ b/storage/xtradb/fil/fil0fil.cc
@@ -7260,27 +7260,6 @@ fil_space_set_corrupt(
mutex_exit(&fil_system->mutex);
}
-/****************************************************************//**
-Acquire fil_system mutex */
-void
-fil_system_enter(void)
-/*==================*/
-{
- ut_ad(!mutex_own(&fil_system->mutex));
- mutex_enter(&fil_system->mutex);
-}
-
-/****************************************************************//**
-Release fil_system mutex */
-void
-fil_system_exit(void)
-/*=================*/
-{
- ut_ad(mutex_own(&fil_system->mutex));
- mutex_exit(&fil_system->mutex);
-}
-
-
/******************************************************************
Get id of first tablespace or ULINT_UNDEFINED if none */
UNIV_INTERN