summaryrefslogtreecommitdiff
path: root/storage/innobase/fil
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2016-07-04 17:31:14 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2016-07-04 17:38:47 +0300
commit406fe77763c43dd7e151d92364e0296539077d4a (patch)
treeb9669c2143cc454a8d3e931999376c2d37b51cec /storage/innobase/fil
parent0fdb17e6c3f50ae22eb97b6363bcbd8b0cd9e040 (diff)
downloadmariadb-git-406fe77763c43dd7e151d92364e0296539077d4a.tar.gz
Add more diagnostic to find out the problem on
innodb_shutdown_for_mysql in ppc64el on test case innodb_fts.innodb_fts_stopword_charset.
Diffstat (limited to 'storage/innobase/fil')
-rw-r--r--storage/innobase/fil/fil0fil.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 49550b6cdb2..9d471f9dbd3 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -1301,6 +1301,28 @@ fil_space_free(
/*******************************************************************//**
Returns a pointer to the file_space_t that is in the memory cache
+associated with a space id.
+@return file_space_t pointer, NULL if space not found */
+fil_space_t*
+fil_space_get(
+/*==========*/
+ ulint id) /*!< in: space id */
+{
+ fil_space_t* space;
+
+ ut_ad(fil_system);
+
+ mutex_enter(&fil_system->mutex);
+
+ space = fil_space_get_by_id(id);
+
+ mutex_exit(&fil_system->mutex);
+
+ return (space);
+}
+
+/*******************************************************************//**
+Returns a pointer to the file_space_t that is in the memory cache
associated with a space id. The caller must lock fil_system->mutex.
@return file_space_t pointer, NULL if space not found */
UNIV_INLINE