summaryrefslogtreecommitdiff
path: root/storage/innobase/trx/trx0sys.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2015-05-26 10:01:12 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-03-17 12:48:50 +0200
commit97acc4a1c37974cb2a1e3d6d163e107cb038a7a6 (patch)
treee8f0732924a8a1127334cc9c9e9813088413eb45 /storage/innobase/trx/trx0sys.cc
parent4e1116b2c6e1b6e0714fb2ed742842f1ee6bfab5 (diff)
downloadmariadb-git-97acc4a1c37974cb2a1e3d6d163e107cb038a7a6.tar.gz
MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC
InnoDB defines some functions that are not called at all. Other functions are called, but only from the same compilation unit. Remove some function declarations and definitions, and add 'static' keywords. Some symbols must be kept for separately compiled tools, such as innochecksum.
Diffstat (limited to 'storage/innobase/trx/trx0sys.cc')
-rw-r--r--storage/innobase/trx/trx0sys.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/storage/innobase/trx/trx0sys.cc b/storage/innobase/trx/trx0sys.cc
index c063d2277f9..f08736ae1f1 100644
--- a/storage/innobase/trx/trx0sys.cc
+++ b/storage/innobase/trx/trx0sys.cc
@@ -137,37 +137,6 @@ updated via SET GLOBAL innodb_file_format_max = 'x' or when we open
or create a table. */
static file_format_t file_format_max;
-#ifdef UNIV_DEBUG
-/****************************************************************//**
-Checks whether a trx is in one of rw_trx_list
-@return true if is in */
-bool
-trx_in_rw_trx_list(
-/*============*/
- const trx_t* in_trx) /*!< in: transaction */
-{
- const trx_t* trx;
-
- /* Non-locking autocommits should not hold any locks. */
- check_trx_state(in_trx);
-
- ut_ad(trx_sys_mutex_own());
-
- ut_ad(trx_assert_started(in_trx));
-
- for (trx = UT_LIST_GET_FIRST(trx_sys->rw_trx_list);
- trx != NULL && trx != in_trx;
- trx = UT_LIST_GET_NEXT(trx_list, trx)) {
-
- check_trx_state(trx);
-
- ut_ad(trx->rsegs.m_redo.rseg != NULL && !trx->read_only);
- }
-
- return(trx != 0);
-}
-#endif /* UNIV_DEBUG */
-
/*****************************************************************//**
Writes the value of max_trx_id to the file based trx system header. */
void