summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-02-27 12:25:51 +0100
committerSergei Golubchik <sergii@pisem.net>2014-02-27 12:25:51 +0100
commit570c1a6fef03111976d7cc890e65964cffe9fa1d (patch)
tree223f174dccab5c129a83d05efc418f83d95c02bf /storage
parent05aba79e981cfeb7e7b68bb31739ab8d443c4aea (diff)
downloadmariadb-git-570c1a6fef03111976d7cc890e65964cffe9fa1d.tar.gz
MDEV-5672 MariaDB 10.0.8 doesn't compile without perfschema
apply the upstream patch
Diffstat (limited to 'storage')
-rw-r--r--storage/xtradb/include/sync0sync.h2
-rw-r--r--storage/xtradb/include/sync0sync.ic17
2 files changed, 18 insertions, 1 deletions
diff --git a/storage/xtradb/include/sync0sync.h b/storage/xtradb/include/sync0sync.h
index 5520ed2d827..03914741f96 100644
--- a/storage/xtradb/include/sync0sync.h
+++ b/storage/xtradb/include/sync0sync.h
@@ -358,7 +358,7 @@ NOTE! Use the corresponding macro in the header file, not this function
directly. Tries to lock the mutex for the current thread. If the lock is not
acquired immediately, returns with return value 1.
@return 0 if succeed, 1 if not */
-UNIV_INTERN
+UNIV_INLINE
ulint
mutex_enter_nowait_func(
/*====================*/
diff --git a/storage/xtradb/include/sync0sync.ic b/storage/xtradb/include/sync0sync.ic
index 3ea82ebe002..4a1707654cb 100644
--- a/storage/xtradb/include/sync0sync.ic
+++ b/storage/xtradb/include/sync0sync.ic
@@ -316,6 +316,23 @@ mutex_enter_func(
mutex_spin_wait(mutex, high_priority, file_name, line);
}
+/********************************************************************//**
+NOTE! Use the corresponding macro in the header file, not this function
+directly. Tries to lock the mutex for the current thread. If the lock is not
+acquired immediately, returns with return value 1.
+@return 0 if succeed, 1 if not */
+UNIV_INLINE
+ulint
+mutex_enter_nowait_func(
+/*====================*/
+ ib_prio_mutex_t* mutex, /*!< in: pointer to mutex */
+ const char* file_name, /*!< in: file name where mutex
+ requested */
+ ulint line) /*!< in: line where
+ requested */
+{
+ return mutex_enter_nowait_func(&mutex->base_mutex, file_name, line);
+}
#ifdef UNIV_PFS_MUTEX
/******************************************************************//**