summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-01-31 15:04:37 +0100
committerSergei Golubchik <serg@mariadb.org>2015-01-31 21:51:45 +0100
commit863cfb3fa5153e7754279324ba7e66a4cfdac805 (patch)
treea1eac5e06bb16f03703f03d40cfb203646e49c0b /sql/log.cc
parentb050354ffb15e4e27498b169ec723da4d8aa8da6 (diff)
downloadmariadb-git-863cfb3fa5153e7754279324ba7e66a4cfdac805.tar.gz
small cleanup, remove a useless function
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 88f612e642b..0eb475433bd 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -6042,7 +6042,6 @@ err:
}
else
{
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
mysql_mutex_assert_owner(&LOCK_log);
mysql_mutex_assert_not_owner(&LOCK_after_binlog_sync);
@@ -6079,7 +6078,6 @@ err:
mysql_mutex_lock(&LOCK_after_binlog_sync);
mysql_mutex_unlock(&LOCK_log);
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
mysql_mutex_assert_not_owner(&LOCK_log);
mysql_mutex_assert_owner(&LOCK_after_binlog_sync);
@@ -7410,7 +7408,6 @@ MYSQL_BIN_LOG::trx_group_commit_leader(group_commit_entry *leader)
bool any_error= false;
bool all_error= true;
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
mysql_mutex_assert_owner(&LOCK_log);
mysql_mutex_assert_not_owner(&LOCK_after_binlog_sync);
@@ -7498,7 +7495,6 @@ MYSQL_BIN_LOG::trx_group_commit_leader(group_commit_entry *leader)
Loop through threads and run the binlog_sync hook
*/
{
- /* documentation of which mutexes are (not) owned */
mysql_mutex_assert_not_owner(&LOCK_prepare_ordered);
mysql_mutex_assert_not_owner(&LOCK_log);
mysql_mutex_assert_owner(&LOCK_after_binlog_sync);
@@ -9853,14 +9849,6 @@ TC_LOG_BINLOG::set_status_variables(THD *thd)
}
}
-void assert_LOCK_log_owner(bool owner)
-{
- if (owner)
- mysql_mutex_assert_owner(mysql_bin_log.get_log_lock());
- else
- mysql_mutex_assert_not_owner(mysql_bin_log.get_log_lock());
-}
-
struct st_mysql_storage_engine binlog_storage_engine=
{ MYSQL_HANDLERTON_INTERFACE_VERSION };