summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-08 11:36:18 +0200
committerMonty <monty@mariadb.org>2017-12-08 11:38:22 +0200
commitc4581735d0210beba0733b30df8dd994786663fe (patch)
tree52a902698e82c2a875f525c52e0505b7e9ebbdd5 /sql/sql_list.h
parent6d63a03490298a8b7246e7f4516eb383534f8e8c (diff)
downloadmariadb-git-c4581735d0210beba0733b30df8dd994786663fe.tar.gz
Cleanups
- Remove not used thd_rpl_is_parallel() - Remove not used mysql_notify_thread_having_shared_lock() - Remove not needed LOCK_thread_count from MYSQL_BIN_LOG::reset_logs() - LOCK_thread_count is not protecting against rollback, so this code and comment is not needed - Remove mutex_locks in slave.cc that are not needed. Added THD::assert_not_linked() to ensure that it was safe to remove - Fixed not repeatable test load_data_stmt_view - Updated binlog_killed to test removal of mutex (thanks to Andrei Elkin for test) - More code comments
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 422b7943aa9..c708ed6d2f9 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -622,6 +622,10 @@ struct ilink
{
DBUG_ASSERT(prev != 0 && next != 0);
}
+ inline void assert_not_linked()
+ {
+ DBUG_ASSERT(prev == 0 && next == 0);
+ }
virtual ~ilink() { unlink(); } /*lint -e1740 */
};